]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: sctp: Translate bare '-m sctp' match master
authorPhil Sutter <phil@nwl.cc>
Wed, 2 Jul 2025 14:20:06 +0000 (16:20 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 4 Jul 2025 12:55:59 +0000 (14:55 +0200)
commit12e6b5ed65fd91ea413a2e45201289c3d01c4e29
treebb895ffe92117b38745be5255ad48344a5a3fd91
parent192c3a6bc18f206895ec5e38812d648ccfe7e281
extensions: sctp: Translate bare '-m sctp' match

Just like with TCP and UDP protocol matches, emit a simple 'meta
l4proto' match if no specific header detail is to be matched.

Note that plain '-m sctp' should be a NOP in kernel, but '-p sctp -m
sctp' is not and the translation is deferred to the extension in that
case. Keep things stu^Wsimple and translate unconditionally.

Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_sctp.c
extensions/libxt_sctp.txlate