iptables: rework extension loader
authorJo-Philipp Wich <jo@mein.io>
Sun, 6 Nov 2016 15:47:23 +0000 (16:47 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 6 Nov 2016 15:47:23 +0000 (16:47 +0100)
commit37df903ae8efd88d740b1ed8cc2e0ae384226dd6
treed6690941ae0c47c1cd69605b71cb4a3689d4d0be
parent227530375704f8aa5ae3af0b88d7749f7cf7e7d0
iptables: rework extension loader

Now that we wrap xtables_register_match() and xtables_register_target() we do
not need to load the extensions ourselves anymore since there is no need to
keep the library handles for dlclose().

Switch to libxtables own loader by invoking xtables_find_match() and
xtables_find_target() with XTF_TRY_LOAD .

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
iptables.c