diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
commit | 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch) | |
tree | 25413d1cb3a0cbfe36029db32398c0f333609215 /net-firewall/ipt_netflow/files | |
parent | 9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff) |
gentoo resync : 14.12.2020
Diffstat (limited to 'net-firewall/ipt_netflow/files')
-rw-r--r-- | net-firewall/ipt_netflow/files/ipt_netflow-2.3-flags.patch | 55 | ||||
-rw-r--r-- | net-firewall/ipt_netflow/files/ipt_netflow-2.4-bridge_netfilter.patch | 61 |
2 files changed, 0 insertions, 116 deletions
diff --git a/net-firewall/ipt_netflow/files/ipt_netflow-2.3-flags.patch b/net-firewall/ipt_netflow/files/ipt_netflow-2.3-flags.patch deleted file mode 100644 index 0d89e5ba90a9..000000000000 --- a/net-firewall/ipt_netflow/files/ipt_netflow-2.3-flags.patch +++ /dev/null @@ -1,55 +0,0 @@ ---- a/Makefile.in -+++ b/Makefile.in -@@ -11,7 +11,7 @@ - SNMPTGSO = /usr/lib/snmp/dlmod/snmp_NETFLOW.so - SNMPCONF = /etc/snmp/snmpd.conf - SNMPLINE = dlmod netflow $(SNMPTGSO) --CC = gcc -+$(CC) ?= gcc - - # https://www.kernel.org/doc/Documentation/kbuild/modules.txt - # https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt -@@ -22,29 +22,29 @@ - - ipt_NETFLOW.ko: version.h ipt_NETFLOW.c ipt_NETFLOW.h compat.h Makefile - @echo Compiling for kernel $(KVERSION) -- make -C $(KDIR) M=$(CURDIR) modules CONFIG_DEBUG_INFO=y -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules CONFIG_DEBUG_INFO=y - @touch $@ - sparse: | version.h ipt_NETFLOW.c ipt_NETFLOW.h compat.h Makefile - @rm -f ipt_NETFLOW.ko ipt_NETFLOW.o - @echo Compiling for kernel $(KVERSION) -- make -C $(KDIR) M=$(CURDIR) modules C=1 -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules C=1 - @touch ipt_NETFLOW.ko - coverity: - coverity-submit -v - - minstall: | ipt_NETFLOW.ko - @echo " *" -- make -C $(KDIR) M=$(CURDIR) modules_install INSTALL_MOD_PATH=$(DESTDIR) -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules_install INSTALL_MOD_PATH=$(DESTDIR) - $(DEPMOD) - mclean: -- make -C $(KDIR) M=$(CURDIR) clean -+ $(MAKE) -C $(KDIR) M=$(CURDIR) clean - lclean: - -rm -f *.so *_sh.o - clean: mclean lclean - -rm -f *.so *.o modules.order version.h - - snmp_NETFLOW.so: snmp_NETFLOW.c -- $(CC) -fPIC -shared -o $@ $< -lnetsnmp -+ $(CC) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $< -lnetsnmp - - sinstall: | snmp_NETFLOW.so IPT-NETFLOW-MIB.my - @echo " *" -@@ -64,7 +64,7 @@ - fi - - %_sh.o: libipt_NETFLOW.c -- $(CC) $(CFLAGS) -O2 -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c -+ $(CC) $(CFLAGS) $(LDFLAGS) -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c - - %.so: %_sh.o - $(CC) -shared -o $@ $< diff --git a/net-firewall/ipt_netflow/files/ipt_netflow-2.4-bridge_netfilter.patch b/net-firewall/ipt_netflow/files/ipt_netflow-2.4-bridge_netfilter.patch deleted file mode 100644 index cde23bc9fe7c..000000000000 --- a/net-firewall/ipt_netflow/files/ipt_netflow-2.4-bridge_netfilter.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 9288e30f493d252ee85b492a894f78073e4f6d41 Mon Sep 17 00:00:00 2001 -From: ABC <abc@openwall.com> -Date: Sat, 28 Sep 2019 23:29:40 +0300 -Subject: [PATCH] Don't compile physdev-override if BRIDGE_NETFILTER is - disabled. - -Fixes #120 "Compile error nf_bridge / nf_trace" reported by DocMAX. - -Fixes: 51bdc2b ("Use nf_bridge_info_get() instead of skb->nf_bridge"). ---- - compat.h | 2 ++ - configure | 1 + - ipt_NETFLOW.c | 5 +++++ - 3 files changed, 8 insertions(+) - -diff --git a/compat.h b/compat.h -index 0f9896b..66e224b 100644 ---- a/compat.h -+++ b/compat.h -@@ -680,11 +680,13 @@ static inline int is_vlan_dev(struct net_device *dev) - #endif - - #if LINUX_VERSION_CODE < KERNEL_VERSION(5,0,0) -+# ifdef CONFIG_BRIDGE_NETFILTER - static inline struct nf_bridge_info * - nf_bridge_info_get(const struct sk_buff *skb) - { - return skb->nf_bridge; - } -+# endif - #endif - - #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0) -diff --git a/configure b/configure -index 74eece5..8aae8bf 100755 ---- a/configure -+++ b/configure -@@ -470,6 +470,7 @@ kernel_check_config() { - kconfig CONFIG_NF_CONNTRACK_EVENTS "natevents" - kconfig CONFIG_IPV6 "IPv6" - kconfig CONFIG_IP6_NF_IPTABLES "ip6tables target" -+ kconfig CONFIG_BRIDGE_NETFILTER "physdev override" - } - - kernel_check_include() { -diff --git a/ipt_NETFLOW.c b/ipt_NETFLOW.c -index fe25655..064de6c 100644 ---- a/ipt_NETFLOW.c -+++ b/ipt_NETFLOW.c -@@ -83,6 +83,11 @@ - #if defined(CONFIG_NF_NAT_NEEDED) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) - # include <net/netfilter/nf_conntrack_timestamp.h> - #endif -+#ifdef ENABLE_PHYSDEV_OVER -+# ifndef CONFIG_BRIDGE_NETFILTER -+# undef ENABLE_PHYSDEV_OVER -+# endif -+#endif - - #define IPT_NETFLOW_VERSION "2.4" /* Note that if you are using git, you - will see version in other format. */ |