]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: mnl: prepare for listing all device netdev device hooks
authorFlorian Westphal <fw@strlen.de>
Tue, 20 Aug 2024 22:12:26 +0000 (00:12 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 21 Aug 2024 12:20:39 +0000 (14:20 +0200)
commitb8872b83eb365fcc921f2c59ac3ea055ca22c7e7
treeca43c030f65fb5ff84a65b37165ddcb217a185b2
parent5089d0f46676aa13ab679f6e4820a08957f2e7e6
src: mnl: prepare for listing all device netdev device hooks

Change output foramt slightly so device name is included for netdev
family.

% nft list hooks netdev device eth0
family netdev {
        hook ingress device eth0 {
                 0000000000 chain inet ingress in_public [nf_tables]
                 0000000000 chain netdev ingress in_public [nf_tables]
        }
        hook egress device eth0 {
                 0000000000 chain netdev ingress out_public [nf_tables]
        }
}

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