summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/extensions
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2004-09-04 09:01:05 +0000
committerBart De Schuymer <bdschuym@pandora.be>2004-09-04 09:01:05 +0000
commitbec50d6ff43c4855037377424a3b8749409b07de (patch)
tree2db6bf63f43fd8c79ea3e9ade9469aeca60b1516 /userspace/ebtables2/extensions
parentb2984bf67771327be3d13d28f649ee2f9125b1aa (diff)
fix -D --arp-mac-src
Diffstat (limited to 'userspace/ebtables2/extensions')
-rw-r--r--userspace/ebtables2/extensions/ebt_arp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/userspace/ebtables2/extensions/ebt_arp.c b/userspace/ebtables2/extensions/ebt_arp.c
index 6323fc4..c38eec6 100644
--- a/userspace/ebtables2/extensions/ebt_arp.c
+++ b/userspace/ebtables2/extensions/ebt_arp.c
@@ -327,15 +327,15 @@ static int compare(const struct ebt_entry_match *m1,
return 0;
}
if (arpinfo1->bitmask & EBT_ARP_SRC_MAC) {
- if (arpinfo1->smaddr != arpinfo2->smaddr)
+ if (memcmp(arpinfo1->smaddr, arpinfo2->smaddr, ETH_ALEN))
return 0;
- if (arpinfo1->smmsk != arpinfo2->smmsk)
+ if (memcmp(arpinfo1->smmsk, arpinfo2->smmsk, ETH_ALEN))
return 0;
}
if (arpinfo1->bitmask & EBT_ARP_DST_MAC) {
- if (arpinfo1->dmaddr != arpinfo2->dmaddr)
+ if (memcmp(arpinfo1->dmaddr, arpinfo2->dmaddr, ETH_ALEN))
return 0;
- if (arpinfo1->dmmsk != arpinfo2->dmmsk)
+ if (memcmp(arpinfo1->dmmsk, arpinfo2->dmmsk, ETH_ALEN))
return 0;
}
return 1;