]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: use switch whenever possible in the monitor code
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 Oct 2014 16:25:16 +0000 (18:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Oct 2014 12:10:58 +0000 (14:10 +0200)
commitb0fedf634ce4ce81212294e5bef554dcd46746e1
tree52d54b86f5599c1882c0f8d82425f3a4b4425d22
parent788687b03e3708221cd5721fe90da300aca90522
netlink: use switch whenever possible in the monitor code

This is more robust than the current 'else' fallback. If we run a
newer kernel with old nft binaries, unknown messages will be
misinterpreted as deletions.

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