]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: __add_{match,target}() can't fail
authorPhil Sutter <phil@nwl.cc>
Wed, 31 Jul 2024 13:56:12 +0000 (15:56 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 10 Apr 2025 16:45:43 +0000 (18:45 +0200)
commit2db8bf2fbf080f6a054b658df65c468bfa0db68d
tree545c59e6b751a01d942a275fea174cadd31f184d
parentd84b1647514f3121bd4a6adfca9a977751c39bbc
nft: __add_{match,target}() can't fail

These functions either call xtables_error() which terminates the process
or succeed - make them return void. While at it, export them as rule
parsing code will call them in future. Also make input parameter const,
they're not supposed to alter extension data.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.c
iptables/nft.h