]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: Show the handles of unknown rules in "nft monitor trace"
authorLuis Ressel <aranea@aixah.de>
Thu, 26 Mar 2020 15:22:29 +0000 (15:22 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Apr 2020 10:40:44 +0000 (12:40 +0200)
commit0bbd101a9dcdf7e0bdcb9e03d2f8d486d362d700
tree10bdb80ce87e1c9622a908334a8f6474216fa256
parent37b4474d62c9ad52ad71b984e0180fdc56add94a
netlink: Show the handles of unknown rules in "nft monitor trace"

When "nft monitor trace" doesn't know a rule (because it was only added
to the ruleset after nft was invoked), that rule is silently omitted in
the trace output, which can come as a surprise when debugging issues.

Instead, we can at least show the information we got via netlink, i.e.
the family, table and chain name, rule handle and verdict.

Signed-off-by: Luis Ressel <aranea@aixah.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c