diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6t_mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/netfilter/ip6t_mac.c b/net/ipv6/netfilter/ip6t_mac.c index 526d43e37234..ae0b09291d17 100644 --- a/net/ipv6/netfilter/ip6t_mac.c +++ b/net/ipv6/netfilter/ip6t_mac.c | |||
@@ -34,8 +34,8 @@ match(const struct sk_buff *skb, | |||
34 | return (skb->mac.raw >= skb->head | 34 | return (skb->mac.raw >= skb->head |
35 | && (skb->mac.raw + ETH_HLEN) <= skb->data | 35 | && (skb->mac.raw + ETH_HLEN) <= skb->data |
36 | /* If so, compare... */ | 36 | /* If so, compare... */ |
37 | && ((memcmp(eth_hdr(skb)->h_source, info->srcaddr, ETH_ALEN) | 37 | && ((!compare_ether_addr(eth_hdr(skb)->h_source, info->srcaddr)) |
38 | == 0) ^ info->invert)); | 38 | ^ info->invert)); |
39 | } | 39 | } |
40 | 40 | ||
41 | static int | 41 | static int |