]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: Make sure extensions register in revision order
authorPhil Sutter <phil@nwl.cc>
Mon, 21 Sep 2020 11:42:06 +0000 (13:42 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 7 Oct 2020 10:38:28 +0000 (12:38 +0200)
commitb3ac87038f4e45141831d9ab485a2f627daba3f1
treeace8141d4c48b90c24ac45df07b628c5f77b8fd5
parentad4b17b98bbedf93d2182a4dc9a37e9cf3adfe1b
libxtables: Make sure extensions register in revision order

Insert extensions into pending lists in ordered fashion: Group by
extension name (and, for matches, family) and order groups by descending
revision number.

This allows to simplify the later full registration considerably. Since
that involves kernel compatibility checks, the extra cycles here pay off
eventually.

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