aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nfnetlink_log.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-04-02 14:31:40 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-04-08 16:49:07 +0200
commite70deecbf8e1562cac0b19f23848919e2f5d65aa (patch)
tree9350ff40e25b7a7a3c096b5463441d7782c750de /net/netfilter/nfnetlink_log.c
parentnetfilter: x_tables: don't extract flow keys on early demuxed sks in socket match (diff)
downloadlinux-dev-e70deecbf8e1562cac0b19f23848919e2f5d65aa.tar.xz
linux-dev-e70deecbf8e1562cac0b19f23848919e2f5d65aa.zip
netfilter: bridge: don't use nf_bridge_info data to store mac header
br_netfilter maintains an extra state, nf_bridge_info, which is attached to skb via skb->nf_bridge pointer. Amongst other things we use skb->nf_bridge->data to store the original mac header for every processed skb. This is required for ip refragmentation when using conntrack on top of bridge, because ip_fragment doesn't copy it from original skb. However there is no need anymore to do this unconditionally. Move this to the one place where its needed -- when br_netfilter calls ip_fragment(). Also switch to percpu storage for this so we can handle fragmenting without accessing nf_bridge meta data. Only user left is neigh resolution when DNAT is detected, to hold the original source mac address (neigh resolution builds new mac header using bridge mac), so rename ->data and reduce its size to whats needed. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nfnetlink_log.c')
0 files changed, 0 insertions, 0 deletions