From 87c2dae01098afb281f41fc0e6f62fc78e52f1a6 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Thu, 26 Jan 2012 23:23:32 +0530 Subject: [PATCH] bug #403 - fix setting ip proto for packets --- src/decode-ipv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decode-ipv4.c b/src/decode-ipv4.c index d072058b40..103164a9f6 100644 --- a/src/decode-ipv4.c +++ b/src/decode-ipv4.c @@ -551,7 +551,7 @@ void DecodeIPV4(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pkt, #endif /* DEBUG */ /* check what next decoder to invoke */ - switch (IPV4_GET_IPPROTO(p)) { + switch (p->proto = IPV4_GET_IPPROTO(p)) { case IPPROTO_TCP: DecodeTCP(tv, dtv, p, pkt + IPV4_GET_HLEN(p), IPV4_GET_IPLEN(p) - IPV4_GET_HLEN(p), pq);