Skip to content

Commit

Permalink
[NETFILTER]: ebt_arp: fix --arp-gratuitous matching dependence on --a…
Browse files Browse the repository at this point in the history
…rp-ip-{src,dst}

Fix --arp-gratuitous matching dependence on --arp-ip-{src,dst}

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>
Signed-off-by: Lutz Preßler <Lutz.Pressler@SerNet.DE>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Bart De Schuymer authored and David S. Miller committed Nov 7, 2007
1 parent 55d84ac commit e011ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bridge/netfilter/ebt_arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static int ebt_filter_arp(const struct sk_buff *skb, const struct net_device *in
ah->ar_pro, EBT_ARP_PTYPE))
return EBT_NOMATCH;

if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP)) {
if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_GRAT)) {
__be32 saddr, daddr, *sap, *dap;

if (ah->ar_pln != sizeof(__be32) || ah->ar_pro != htons(ETH_P_IP))
Expand Down

0 comments on commit e011ff4

Please sign in to comment.