]> git.ipfire.org Git - thirdparty/nftables.git/commit
mnl: Fix for missing info in rule dumps
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Dec 2020 14:52:03 +0000 (15:52 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 30 Nov 2021 13:57:46 +0000 (14:57 +0100)
commit7cd0c8b3b8dd4251edd8a571c4d753a26b1c27e0
tree3f3cd237c62aa17d75ec29cec4463a38340b1b75
parent40e2414b74a1b8370decae5dea6395200dfb1e6d
mnl: Fix for missing info in rule dumps

Commit 0e52cab1e64ab improved error reporting by adding rule's table and
chain names to netlink message directly, prefixed by their location
info. This in turn caused netlink dumps of the rule to not contain table
and chain name anymore. Fix this by inserting the missing info before
dumping and remove it afterwards to not cause duplicated entries in
netlink message.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/netlink_linearize.c