]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: fix bogus rulenum after goto action
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 10 May 2014 16:46:02 +0000 (18:46 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 12 May 2014 14:33:10 +0000 (16:33 +0200)
commit939bfa8ae281fa8347cf11f4445b294602a9b515
tree8fbe1435d12728c7fadd09f8fc829437d365492d
parent256909f63ac05395fc9baebb0ce94c96ba644c19
netfilter: nf_tables: fix bogus rulenum after goto action

After returning from the chain that we just went to with no matchings,
we get a bogus rule number in the trace. To fix this, we would need
to iterate over the list of remaining rules in the chain to update the
rule number counter.

Patrick suggested to set this to the maximum value since the default
base chain policy is the very last action when the processing the base
chain is over.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c