diff options
author | Alexander Duyck <alexander.h.duyck@redhat.com> | 2015-05-04 23:33:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-06 01:24:42 +0200 |
commit | 27cf6a6e69a52b07adc68af11e3e39548593baf0 (patch) | |
tree | cbb9e80f9df01fb7de4e1553dca3830dee4780ac /net/bridge | |
parent | etherdev: Fix sparse error, make test usable by other functions (diff) | |
download | linux-27cf6a6e69a52b07adc68af11e3e39548593baf0.tar.xz linux-27cf6a6e69a52b07adc68af11e3e39548593baf0.zip |
ebtables: Use eth_proto_is_802_3
Replace "ntohs(proto) >= ETH_P_802_3_MIN" w/ eth_proto_is_802_3(proto).
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/netfilter/ebtables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 91180a7fc943..5149d9e71114 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c @@ -139,7 +139,7 @@ ebt_basic_match(const struct ebt_entry *e, const struct sk_buff *skb, ethproto = h->h_proto; if (e->bitmask & EBT_802_3) { - if (FWINV2(ntohs(ethproto) >= ETH_P_802_3_MIN, EBT_IPROTO)) + if (FWINV2(eth_proto_is_802_3(ethproto), EBT_IPROTO)) return 1; } else if (!(e->bitmask & EBT_NOPROTO) && FWINV2(e->ethproto != ethproto, EBT_IPROTO)) |