Patchwork [2/2] iptables: add support for connlabel match and nfnl_osf

login
register
mail settings
Submitter Gustavo Zacarias
Date Oct. 30, 2013, 6:09 p.m.
Message ID <1383156550-15805-2-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/287320/
State Accepted
Commit b835171cf9db23095c669b872dbaa15fc1e99898
Headers show

Comments

Gustavo Zacarias - Oct. 30, 2013, 6:09 p.m.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/iptables/iptables.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/package/iptables/iptables.mk b/package/iptables/iptables.mk
index 13ad0ca..6547069 100644
--- a/package/iptables/iptables.mk
+++ b/package/iptables/iptables.mk
@@ -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