From 145d89ba0150df8ac0a131c2d166802b8716cdb8 Mon Sep 17 00:00:00 2001 From: Breno Silva Date: Fri, 11 Sep 2009 00:23:23 -0300 Subject: [PATCH] Unified2rev1 Signed-off-by: Breno Silva --- src/alert-unified2-alert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alert-unified2-alert.c b/src/alert-unified2-alert.c index 4978b77fd6..0674957b20 100644 --- a/src/alert-unified2-alert.c +++ b/src/alert-unified2-alert.c @@ -369,7 +369,7 @@ int Unified2IPv6TypeAlert (ThreadVars *t, Packet *p, void *data, PacketQueue *pq phdr.sp = htons(p->icmpv4h->type); phdr.dp = htons(p->icmpv4h->code); } - else if (phdr.protocol != 0xff) + else if (phdr.protocol != IPPROTO_RAW) { phdr.sp = htons(p->sp); phdr.dp = htons(p->dp); @@ -472,7 +472,7 @@ int Unified2IPv4TypeAlert (ThreadVars *tv, Packet *p, void *data, PacketQueue *p phdr.sp = htons(p->icmpv4h->type); phdr.dp = htons(p->icmpv4h->code); } - else if (phdr.protocol != 0xff) + else if (phdr.protocol != IPPROTO_RAW) { phdr.sp = htons(p->sp); phdr.dp = htons(p->dp);