]> granicus.if.org Git - ipset/commitdiff
Kconfig: ipset needs NETFILTER_NETLINK
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 17 Sep 2013 08:32:58 +0000 (10:32 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Tue, 17 Sep 2013 08:32:58 +0000 (10:32 +0200)
NETFILTER_NETLINK is not selectable in recent kernels, check and warn
if not enabled indirectly.

kernel/include/linux/netfilter/ipset/ip_set_compat.h
kernel/net/netfilter/ipset/Kconfig

index 7c10816365423f4afc0500ed7a378e25fa3c3c34..cdc8f5321c7a39bcae69f57bede1c98408f00cbd 100644 (file)
 #endif
 #endif
 
+#if defined(CONFIG_NETFILTER_NETLINK) || defined(CONFIG_NETFILTER_NETLINK_MODULE)
+#else
+#error "NETFILTER_NETLINK must be enabled: select NFACCT/NFQUEUE/LOG over NFNETLINK"
+#endif
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
 #define xt_action_param                xt_match_param
 #endif
index ba36c283d8372dfb3c890994c57c6bb0d46266b0..fd2c14b6c51b147a645b5749c45194eabbb563f1 100644 (file)
@@ -1,7 +1,7 @@
 menuconfig IP_SET
        tristate "IP set support"
        depends on INET && NETFILTER
-       depends on NETFILTER_NETLINK
+       select NETFILTER_NETLINK
        help
          This option adds IP set support to the kernel.
          In order to define and use the sets, you need the userspace utility