From 4321ed8052f8f1a265c1c2a1d68c9c9afed8091b Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Thu, 26 Jan 2012 23:23:32 +0530 Subject: [PATCH 1/2] bug #403 - fix setting ip proto for packets --- src/decode-ipv4.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/decode-ipv4.c b/src/decode-ipv4.c index d072058..103164a 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); -- 1.7.1