This fixes building with musl and drops the dependency on the OpenWrt kernel-header patches: 270-uapi-kernel.h-glibc-specific-inclusion-of-sysinfo.h.patch 271-uapi-libc-compat.h-do-not-rely-on-__GLIBC__.patch 272-uapi-if_ether.h-prevent-redefinition-of-struct-ethhd.patch Use the new upstream location at netfilter.org and use a define instead of a patch to "optimize". See also: https://git.netfilter.org/arptables/log/ Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com> [Jo-Philipp Wich: add mirror SHA256 sum] Signed-off-by: Jo-Philipp Wich <jo@mein.io>master
parent
dc7c9f590a
commit
32cfd3bd50
@ -1,19 +0,0 @@ |
||||
Index: arptables-v0.0.3-4/libarptc/libarptc_incl.c
|
||||
===================================================================
|
||||
--- arptables-v0.0.3-4.orig/libarptc/libarptc_incl.c 2010-03-08 16:49:28.000000000 +0100
|
||||
+++ arptables-v0.0.3-4/libarptc/libarptc_incl.c 2012-08-14 12:10:29.527945144 +0200
|
||||
@@ -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;
|
||||
|
@ -1,31 +0,0 @@ |
||||
--- a/include/arptables.h
|
||||
+++ b/include/arptables.h
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef _ARPTABLES_USER_H
|
||||
#define _ARPTABLES_USER_H
|
||||
|
||||
+#include <sys/types.h>
|
||||
#include "arptables_common.h"
|
||||
#include "libarptc/libarptc.h"
|
||||
|
||||
--- a/arptables.c
|
||||
+++ b/arptables.c
|
||||
@@ -43,6 +43,7 @@
|
||||
#include <arptables.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/wait.h>
|
||||
+#include <net/ethernet.h>
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
--- a/include/libarptc/arpt_kernel_headers.h
|
||||
+++ b/include/libarptc/arpt_kernel_headers.h
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
-#if defined(__GLIBC__) && __GLIBC__ == 2
|
||||
+#if 1
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/ip_icmp.h>
|
Loading…
Reference in new issue