iptables: add support for connlabel match and nfnl_osf
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 30 Oct 2013 18:09:10 +0000 (15:09 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 10 Nov 2013 23:53:48 +0000 (00:53 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/iptables/iptables.mk

index 13ad0ca855e2e7cfb32b299dc574a61e99922883..65470691a0c21396cfa3d991ea41ab76c92c7c07 100644 (file)
@@ -16,6 +16,16 @@ IPTABLES_CONF_OPT = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr
 # Because of iptables-01-fix-static-link.patch
 IPTABLES_AUTORECONF = YES
 
+# For connlabel match
+ifeq ($(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),y)
+IPTABLES_DEPENDENCIES += libnetfilter_conntrack
+endif
+
+# For nfnl_osf
+ifeq ($(BR2_PACKAGE_LIBNFNETLINK),y)
+IPTABLES_DEPENDENCIES += libnfnetlink
+endif
+
 define IPTABLES_TARGET_SYMLINK_CREATE
        ln -sf xtables-multi $(TARGET_DIR)/usr/sbin/iptables
        ln -sf xtables-multi $(TARGET_DIR)/usr/sbin/iptables-save