summaryrefslogtreecommitdiffstats
path: root/net/netfilter/core.c
diff options
context:
space:
mode:
authorFlorian Westphal2015-07-14 17:51:06 +0200
committerPablo Neira Ayuso2015-07-15 18:18:04 +0200
commit98d1bd802cdbc8f56868fae51edec13e86b59515 (patch)
tree6f16cde1d04c7f4b7f91303a886c714fe90a0de1 /net/netfilter/core.c
parentnetfilter: nftables: Only run the nftables chains in the proper netns (diff)
downloadkernel-qcow2-linux-98d1bd802cdbc8f56868fae51edec13e86b59515.tar.gz
kernel-qcow2-linux-98d1bd802cdbc8f56868fae51edec13e86b59515.tar.xz
kernel-qcow2-linux-98d1bd802cdbc8f56868fae51edec13e86b59515.zip
netfilter: xtables: compute exact size needed for jumpstack
The {arp,ip,ip6tables} jump stack is currently sized based on the number of user chains. However, its rather unlikely that every user defined chain jumps to the next, so lets use the existing loop detection logic to also track the chain depths. The stacksize is then set to the largest chain depth seen. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/core.c')
0 files changed, 0 insertions, 0 deletions