search for: has_bridge_parent

Displaying 3 results from an estimated 3 matches for "has_bridge_parent".

2007 Apr 18
1
[Bridge] [PATCH] [2.6.15.4] Fix has_bridge_parent undefined with CONFIG_NETFILTER_DEBUG
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Apparently introduced in the latest stable set; I am not sure if this is a right fix but given that bridge parent already exists at this point it was rather silly to fetch it again. - -regards - -andrey Subject: [PATCH] [2.6.15.4] Fix has_bridge_parent undefined with CONFIG_NETFILTER_DEBUG This changes br_nf_post_routing to use realoutdev in debug print. At this time it is equal to bridge_parent and is guaranteed to be not NULL. Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru> - --- net/bridge/br_netfilter.c | 4 +--- 1 files c...
2007 Apr 18
2
[Bridge] The problem of bridge+netfilter+nat
...printk(KERN_CRIT "br_netfilter: Argh!! br_nf_post_routing: " "bad mac.raw pointer."); if (skb->dev != NULL) { printk("[%s]", skb->dev->name); if (has_bridge_parent(skb->dev)) printk("[%s]", bridge_parent(skb->dev)->name); } printk("\n"); return NF_ACCEPT; } And in the new bridge-nf version it is annouced this sould not ha...
2007 Apr 18
4
[Bridge] [PATCH/RFC] Let {ip, arp}tables "see" bridged VLAN tagged {I, AR}P packets
...+26,7 @@ #include <linux/netdevice.h> #include <linux/skbuff.h> #include <linux/if_ether.h> +#include <linux/if_vlan.h> #include <linux/netfilter_bridge.h> #include <linux/netfilter_ipv4.h> #include <linux/netfilter_arp.h> @@ -40,6 +47,11 @@ #define has_bridge_parent(device) ((device)->br_port != NULL) #define bridge_parent(device) ((device)->br_port->br->dev) +#define IS_VLAN_IP (skb->protocol == __constant_htons(ETH_P_8021Q) && \ + hdr->h_vlan_encapsulated_proto == __constant_htons(ETH_P_IP)) +#define IS_VLAN_ARP (skb->protoco...