summaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-03-05 00:52:34 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-03-09 13:21:31 +0100
commit4a9d2f200862683d6680d5565f30c126625afe65 (patch)
treefafb281a6de03a1855cb83a7e5442c6159f5996e /net/bridge
parent8bd63cf1a426e69bf4f611b08978f721e46c194f (diff)
downloadop-kernel-dev-4a9d2f200862683d6680d5565f30c126625afe65.zip
op-kernel-dev-4a9d2f200862683d6680d5565f30c126625afe65.tar.gz
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 'net/bridge')
-rw-r--r--net/bridge/br_netfilter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index e547911..5b3bceb 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -239,6 +239,14 @@ drop:
return -1;
}
+static 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);
+}
+
/* PF_BRIDGE/PRE_ROUTING *********************************************/
/* Undo the changes made for ip6tables PREROUTING and continue the
* bridge PRE_ROUTING hook. */
OpenPOWER on IntegriCloud