]> git.ipfire.org Git - thirdparty/nftables.git/commit
nft: trace: print packet unconditionally
authorFlorian Westphal <fw@strlen.de>
Sat, 12 Dec 2020 18:33:09 +0000 (19:33 +0100)
committerFlorian Westphal <fw@strlen.de>
Sat, 12 Dec 2020 18:33:09 +0000 (19:33 +0100)
commit871fb4eaa5ceb9015aeba0614f2e3a41ed794667
tree80c4639c5dd1a59fe4e9a7895bf896329870f8b7
parentb2c73d19cc5ae37e8fb29b01c44124edd0a4e9ea
nft: trace: print packet unconditionally

The kernel includes the packet dump once for each base hook.
This means that in case a table contained no matching rule(s),
the packet dump will be included in the base policy dump.

Simply move the packet dump request out of the switch statement
so the debug output shows current packet even with no matched rule.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/netlink.c