diff options
author | Florian Westphal <fw@strlen.de> | 2015-03-05 02:52:34 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-03-09 15:21:31 +0300 |
commit | 4a9d2f200862683d6680d5565f30c126625afe65 (patch) | |
tree | fafb281a6de03a1855cb83a7e5442c6159f5996e /include/linux | |
parent | 8bd63cf1a426e69bf4f611b08978f721e46c194f (diff) | |
download | linux-4a9d2f200862683d6680d5565f30c126625afe65.tar.xz |
netfilter: bridge: move nf_bridge_update_protocol to where its used
no need to keep it in a header file.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netfilter_bridge.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/netfilter_bridge.h b/include/linux/netfilter_bridge.h index 332ef8ab37e9..dd580a9a1add 100644 --- a/include/linux/netfilter_bridge.h +++ b/include/linux/netfilter_bridge.h @@ -36,14 +36,6 @@ static inline unsigned int nf_bridge_encap_header_len(const struct sk_buff *skb) } } -static inline void nf_bridge_update_protocol(struct sk_buff *skb) -{ - if (skb->nf_bridge->mask & BRNF_8021Q) - skb->protocol = htons(ETH_P_8021Q); - else if (skb->nf_bridge->mask & BRNF_PPPoE) - skb->protocol = htons(ETH_P_PPP_SES); -} - static inline unsigned int nf_bridge_mtu_reduction(const struct sk_buff *skb) { if (unlikely(skb->nf_bridge->mask & BRNF_PPPoE)) |