kernel-ark/net/ipv4/netfilter
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
..
arp_tables.c
arpt_mangle.c
arptable_filter.c
ip_conntrack_amanda.c
ip_conntrack_core.c
ip_conntrack_ftp.c
ip_conntrack_helper_pptp.c
ip_conntrack_irc.c
ip_conntrack_netbios_ns.c
ip_conntrack_netlink.c
ip_conntrack_proto_generic.c
ip_conntrack_proto_gre.c
ip_conntrack_proto_icmp.c
ip_conntrack_proto_sctp.c
ip_conntrack_proto_tcp.c
ip_conntrack_proto_udp.c
ip_conntrack_standalone.c
ip_conntrack_tftp.c
ip_nat_amanda.c
ip_nat_core.c
ip_nat_ftp.c
ip_nat_helper_pptp.c
ip_nat_helper.c
ip_nat_irc.c
ip_nat_proto_gre.c
ip_nat_proto_icmp.c
ip_nat_proto_tcp.c
ip_nat_proto_udp.c
ip_nat_proto_unknown.c
ip_nat_rule.c
ip_nat_snmp_basic.c
ip_nat_standalone.c
ip_nat_tftp.c
ip_queue.c
ip_tables.c
ipt_addrtype.c
ipt_ah.c
ipt_CLUSTERIP.c
ipt_dscp.c
ipt_DSCP.c
ipt_ecn.c
ipt_ECN.c
ipt_esp.c
ipt_hashlimit.c
ipt_iprange.c
ipt_LOG.c
ipt_MASQUERADE.c
ipt_multiport.c
ipt_NETMAP.c
ipt_owner.c
ipt_recent.c
ipt_REDIRECT.c
ipt_REJECT.c
ipt_SAME.c
ipt_TCPMSS.c
ipt_tos.c
ipt_TOS.c
ipt_ttl.c
ipt_TTL.c
ipt_ULOG.c
iptable_filter.c
iptable_mangle.c
iptable_raw.c
Kconfig
Makefile
nf_conntrack_l3proto_ipv4.c
nf_conntrack_proto_icmp.c