From: Marc Boucher Date: Wed, 12 Jun 2002 19:22:29 +0000 (+0000) Subject: Fixed destination netmask comparison bug in is_same() X-Git-Tag: v1.2.7~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f8d2d95056b50a2d05eff0245fe1ddd8c382b05;p=thirdparty%2Fiptables.git Fixed destination netmask comparison bug in is_same() --- diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c index d221e74c..e15df902 100644 --- a/libiptc/libip4tc.c +++ b/libiptc/libip4tc.c @@ -194,7 +194,7 @@ is_same(const STRUCT_ENTRY *a, const STRUCT_ENTRY *b, unsigned char *matchmask) if (a->ip.src.s_addr != b->ip.src.s_addr || a->ip.dst.s_addr != b->ip.dst.s_addr || a->ip.smsk.s_addr != b->ip.smsk.s_addr - || a->ip.smsk.s_addr != b->ip.smsk.s_addr + || a->ip.dmsk.s_addr != b->ip.dmsk.s_addr || a->ip.proto != b->ip.proto || a->ip.flags != b->ip.flags || a->ip.invflags != b->ip.invflags)