diff options
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 8d493c91a562..3d110c4fc787 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c | |||
| @@ -138,7 +138,7 @@ ebt_basic_match(const struct ebt_entry *e, const struct sk_buff *skb, | |||
| 138 | ethproto = h->h_proto; | 138 | ethproto = h->h_proto; |
| 139 | 139 | ||
| 140 | if (e->bitmask & EBT_802_3) { | 140 | if (e->bitmask & EBT_802_3) { |
| 141 | if (FWINV2(ntohs(ethproto) >= 1536, EBT_IPROTO)) | 141 | if (FWINV2(ntohs(ethproto) >= ETH_P_802_3_MIN, EBT_IPROTO)) |
| 142 | return 1; | 142 | return 1; |
| 143 | } else if (!(e->bitmask & EBT_NOPROTO) && | 143 | } else if (!(e->bitmask & EBT_NOPROTO) && |
| 144 | FWINV2(e->ethproto != ethproto, EBT_IPROTO)) | 144 | FWINV2(e->ethproto != ethproto, EBT_IPROTO)) |
