]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: Register multiple extensions in ascending order
authorPhil Sutter <phil@nwl.cc>
Tue, 22 Sep 2020 18:01:15 +0000 (20:01 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 7 Oct 2020 10:38:45 +0000 (12:38 +0200)
commitb5f1a3beac1d1f2b96c8be8ebec450f5ea758090
treee461d85fafd17b803b94710ec8a81625ed5f240a
parenta1eaaceb0460b338294e40bdd5bc5186320a478c
libxtables: Register multiple extensions in ascending order

The newly introduced ordered insert algorithm in
xtables_register_{match,target}() works best if extensions of same name
are passed in ascending revisions. Since this is the case in about all
extensions' arrays, iterate over them from beginning to end.

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