summaryrefslogtreecommitdiffstats
path: root/filter/raw2packet
diff options
context:
space:
mode:
authorEric Leblond <eric@inl.fr>2008-07-31 10:41:57 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-07-31 10:41:57 +0200
commit14a8a1e7dd1301002c99598a2b067cde3ca19b6e (patch)
tree3a9036bcafca17c49cc6b91850d759bd5dec1b2e /filter/raw2packet
parenta52690d2dbb0e14d705ba990cda9b7869a747c0b (diff)
cleanup: fix compilation warning related to signed and unsigned comparisons
This patch fixes the warning related to signed and unsigned comparaison. Signed-off-by: Eric Leblond <eric@inl.fr>
Diffstat (limited to 'filter/raw2packet')
-rw-r--r--filter/raw2packet/ulogd_raw2packet_BASE.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/raw2packet/ulogd_raw2packet_BASE.c b/filter/raw2packet/ulogd_raw2packet_BASE.c
index 7c6fd26..e61d904 100644
--- a/filter/raw2packet/ulogd_raw2packet_BASE.c
+++ b/filter/raw2packet/ulogd_raw2packet_BASE.c
@@ -694,7 +694,7 @@ static int _interp_iphdr(struct ulogd_pluginstance *pi, u_int32_t len)
GET_VALUE(pi->input.keys, INKEY_RAW_PCKT).ptr;
void *nexthdr = (u_int32_t *)iph + iph->ihl;
- if (len < sizeof(struct iphdr) || len <= iph->ihl * 4)
+ if (len < sizeof(struct iphdr) || len <= (u_int32_t)(iph->ihl * 4))
return ULOGD_IRET_OK;
len -= iph->ihl * 4;