kernel-ark/net
Patrick McHardy a193a4abdd [NETFILTER]: Fix skb->nf_bridge lifetime issues
The bridge netfilter code simulates the NF_IP_PRE_ROUTING hook and skips
the real hook by registering with high priority and returning NF_STOP if
skb->nf_bridge is present and the BRNF_NF_BRIDGE_PREROUTING flag is not
set. The flag is only set during the simulated hook.

Because skb->nf_bridge is only freed when the packet is destroyed, the
packet will not only skip the first invocation of NF_IP_PRE_ROUTING, but
in the case of tunnel devices on top of the bridge also all further ones.
Forwarded packets from a bridge encapsulated by a tunnel device and sent
as locally outgoing packet will also still have the incorrect bridge
information from the input path attached.

We already have nf_reset calls on all RX/TX paths of tunnel devices,
so simply reset the nf_bridge field there too. As an added bonus,
the bridge information for locally delivered packets is now also freed
when the packet is queued to a socket.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-03-20 19:23:05 -08:00
..
802
8021q [VLAN]: translate IF_OPER_DORMANT to netif_dormant_on() 2006-03-20 17:11:41 -08:00
appletalk
atm
ax25
bluetooth
bridge
core [IPSEC]: Sync series - core changes 2006-03-20 19:15:11 -08:00
dccp [DCCP] feat: Actually change the CCID upon negotiation 2006-03-20 19:22:37 -08:00
decnet
econet
ethernet
ieee80211
ipv4 [NETFILTER]: Fix skb->nf_bridge lifetime issues 2006-03-20 19:23:05 -08:00
ipv6 [IPSEC]: Sync series - fast path 2006-03-20 19:15:29 -08:00
ipx
irda
key [IPSEC]: Sync series - user 2006-03-20 19:16:12 -08:00
lapb
llc
netfilter [NETFILTER]: ctnetlink: avoid unneccessary event message generation 2006-03-20 18:03:59 -08:00
netlink [NETLINK]: Add netlink_has_listeners for avoiding unneccessary event message generation 2006-03-20 18:52:01 -08:00
netrom
packet
rose
rxrpc
sched [PKT_SCHED]: Convert sch_red to a classful qdisc 2006-03-20 19:20:44 -08:00
sctp
sunrpc
tipc
unix
wanrouter
x25
xfrm [XFRM]: Add some missing exports. 2006-03-20 19:18:52 -08:00
compat.c
Kconfig
Makefile
nonet.c
socket.c [NET]: Do not lose accepted socket when -ENFILE/-EMFILE. 2006-03-20 17:13:49 -08:00
sysctl_net.c
TUNABLE