|
|
@@ -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. */
|