iptables: optional loading of static extensions
authorRalph Sennhauser <ralph.sennhauser@gmail.com>
Sun, 6 Nov 2016 07:33:37 +0000 (08:33 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 6 Nov 2016 14:04:05 +0000 (15:04 +0100)
commit19acf041bfdb479e68d53699cc8940d21d76434b
treebc309750f4637ef63d9d3f429bf9bbee0257997c
parent010723ef8af18add1e592a55092d4b0e1c5e1efe
iptables: optional loading of static extensions

Make loading of static extensions optional to support vanilla iptables
in it's default configuration by setting DISABLE_STATIC_EXTENSIONS
instead of hackery.

In case iptables is built with --disable-static libext.a, libext4.a and
libext6.a which OpenWrt installs in the form of libiptext.so,
libiptext4.so, libiptext6.so to save a couple more bytes are of no use
or non-existent one could say. So this commit avoids requiring a
tampered with iptables.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
[Jo-Philipp Wich: stub init_extensions*() instead to reduce amount of ifdefs]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
CMakeLists.txt
iptables.h