From a8d26915e8776eb94adeb87de1d23a148cdb2265 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 30 Mar 2017 12:39:45 -0700 Subject: arptables: Upgrade to 0.0.4 Switch the SRC_URI to git based fetcher Signed-off-by: Khem Raj Signed-off-by: Joe MacDonald --- .../arptables/arptables-arpt-get-target-fix.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta-networking/recipes-support/arptables/arptables/arptables-arpt-get-target-fix.patch (limited to 'meta-networking/recipes-support/arptables/arptables/arptables-arpt-get-target-fix.patch') diff --git a/meta-networking/recipes-support/arptables/arptables/arptables-arpt-get-target-fix.patch b/meta-networking/recipes-support/arptables/arptables/arptables-arpt-get-target-fix.patch new file mode 100644 index 0000000000..0875344feb --- /dev/null +++ b/meta-networking/recipes-support/arptables/arptables/arptables-arpt-get-target-fix.patch @@ -0,0 +1,30 @@ +arptables: fix the redefinition of 'arpt_get_target' + +Upstream-Status: Pending + +This function is already defined as a static inline function in +include/linux/netfilter_arp/arp_tables.h, once GCC uses -O0, the +inline will not work, and the redefinition error will happen + +Signed-off-by: Aws Ismail +Signed-off-by: Roy.Li + +diff --git a/libarptc/libarptc_incl.c b/libarptc/libarptc_incl.c +index 35736db..addd3f9 100644 +--- a/libarptc/libarptc_incl.c ++++ b/libarptc/libarptc_incl.c +@@ -11,14 +11,6 @@ + /* (C)1999 Paul ``Rusty'' Russell - Placed under the GNU GPL (See + COPYING for details). */ + +-#ifndef __OPTIMIZE__ +-STRUCT_ENTRY_TARGET * +-GET_TARGET(STRUCT_ENTRY *e) +-{ +- return (void *)e + e->target_offset; +-} +-#endif +- + static int sockfd = -1; + static void *arptc_fn = NULL; + -- cgit 1.2.3-korg