]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: Register only the highest revision extension
authorPhil Sutter <phil@nwl.cc>
Fri, 11 Feb 2022 16:39:24 +0000 (17:39 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 2 Mar 2022 20:18:15 +0000 (21:18 +0100)
commit2dbb49d15fb44ddd521a734eca3be3f940b7c1ba
treebb0e708bed35e690306ca8064cf8514dec710da3
parent07e2107ef0cbc1b81864c3c0f0ef297a9dfff44d
libxtables: Register only the highest revision extension

When fully registering extensions, ignore all consecutive ones with same
name and family value. Since commit b3ac87038f4e4 ("libxtables: Make
sure extensions register in revision order"), one may safely assume the
list of pending extensions has highest revision numbers first. Since
iptables is only interested in the highest revision the kernel supports,
registration and compatibility checks may be skipped once the first
matching extension in pending list has validated.

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