From d3244e51eb0f67a4771fc881e81a47a0dc6c89a4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 16 Feb 2010 20:09:44 +0100 Subject: [PATCH] Fix big endian iponly handling. --- src/detect-engine-iponly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-engine-iponly.c b/src/detect-engine-iponly.c index 68a844180a..ce91c9d4f7 100644 --- a/src/detect-engine-iponly.c +++ b/src/detect-engine-iponly.c @@ -35,7 +35,7 @@ * compare tree's: if they have one (or more) matching * sig, we have a match. */ -#if __BIG_ENDIAN__ +#ifdef __BIG_ENDIAN__ #define IPONLY_EXTRACT_16(a) (((a)->ip[0] & 0xffff0000) >> 16) #else #define IPONLY_EXTRACT_16(a) ((a)->ip[0] & 0x0000ffff)