Displaying 2 results from an estimated 2 matches for "nf_br_local_in".
2007 Apr 18
0
[Bridge] Netfilter hooks
Pardon me if this a little off-topic, I don't know where else to post
this question.
We are trying to add encryption support at layer II. Decrypting-hook on
NF_BR_LOCAL_IN and encrypting-hook at NF_BR_LOCAL_OUT. But, this is
breaking iptables pre-routing chain (Now I am not able to do
port-forwarding). Any ideas?
Thanks,
-Raj
2007 Apr 18
5
[Bridge] RFC: [PATCH] bridge vlan integration
...an_filter(skb, &br->vlan)) {
+ kfree_skb(skb);
+ return;
+ }
+
br->statistics.rx_packets++;
br->statistics.rx_bytes += skb->len;
indev = skb->dev;
skb->dev = br->dev;
+ if (br_vlan_output_frame(&skb, br->vlan.untagged))
+ return;
+
NF_HOOK(PF_BRIDGE, NF_BR_LOCAL_IN, skb, indev, NULL,
netif_receive_skb);
}
@@ -136,6 +144,10 @@ int br_handle_frame(struct net_bridge_po
}
if (p->state == BR_STATE_FORWARDING || p->state == BR_STATE_LEARNING) {
+ if (br_vlan_input_frame(skb, &p->vlan)) {
+ return 1;
+ }
+
if (br_should_route_hook) {...