aboutsummaryrefslogtreecommitdiffstats
path: root/package/linux-atm/patches
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-09-15 21:01:43 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-09-15 21:01:43 +0000
commita37e5a6bf16cf108d21c174af0a6bb9a25b51a2f (patch)
treef1b9304875a516fda2352e9c9dabd111a4112cad /package/linux-atm/patches
parent7437b1ce7d860d3d0501942d6d3536c07d1ef4aa (diff)
downloadupstream-a37e5a6bf16cf108d21c174af0a6bb9a25b51a2f.tar.gz
upstream-a37e5a6bf16cf108d21c174af0a6bb9a25b51a2f.tar.bz2
upstream-a37e5a6bf16cf108d21c174af0a6bb9a25b51a2f.zip
Add support for IP over ATM
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8782 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/linux-atm/patches')
-rw-r--r--package/linux-atm/patches/500-reenable_arpd.patch49
-rw-r--r--package/linux-atm/patches/600-arpd_includes.patch45
2 files changed, 94 insertions, 0 deletions
diff --git a/package/linux-atm/patches/500-reenable_arpd.patch b/package/linux-atm/patches/500-reenable_arpd.patch
new file mode 100644
index 0000000000..1e42f75a5a
--- /dev/null
+++ b/package/linux-atm/patches/500-reenable_arpd.patch
@@ -0,0 +1,49 @@
+diff -urN linux-atm-2.4.1/configure linux-atm-2.4.1.new/configure
+--- linux-atm-2.4.1/configure 2007-09-15 21:07:25.000000000 +0200
++++ linux-atm-2.4.1.new/configure 2007-09-15 22:07:22.000000000 +0200
+@@ -8825,7 +8825,7 @@
+ fi;
+
+
+- ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile"
++ ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/arpd/Makefile"
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure
+ # tests run on this system so they can be shared between configure
+@@ -9367,6 +9367,7 @@
+ "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+ "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
+ "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
++ "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
+ "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
+ "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+diff -urN linux-atm-2.4.1/configure.in linux-atm-2.4.1.new/configure.in
+--- linux-atm-2.4.1/configure.in 2007-09-15 21:07:13.000000000 +0200
++++ linux-atm-2.4.1.new/configure.in 2007-09-15 21:08:16.000000000 +0200
+@@ -153,5 +153,6 @@
+ src/Makefile \
+ src/include/Makefile \
+ src/lib/Makefile \
++ src/arpd/Makefile \
+ )
+
+diff -urN linux-atm-2.4.1/src/Makefile.am linux-atm-2.4.1.new/src/Makefile.am
+--- linux-atm-2.4.1/src/Makefile.am 2007-09-15 21:07:13.000000000 +0200
++++ linux-atm-2.4.1.new/src/Makefile.am 2007-09-15 21:08:27.000000000 +0200
+@@ -1,2 +1,2 @@
+-SUBDIRS = include lib
++SUBDIRS = include lib arpd
+
+diff -urN linux-atm-2.4.1/src/Makefile.in linux-atm-2.4.1.new/src/Makefile.in
+--- linux-atm-2.4.1/src/Makefile.in 2007-09-15 21:07:25.000000000 +0200
++++ linux-atm-2.4.1.new/src/Makefile.in 2007-09-15 22:10:03.000000000 +0200
+@@ -96,7 +96,7 @@
+ VERSION = @VERSION@
+ YACC = @YACC@
+
+-SUBDIRS = include lib
++SUBDIRS = include lib arpd
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../config.h
+ CONFIG_CLEAN_FILES =
diff --git a/package/linux-atm/patches/600-arpd_includes.patch b/package/linux-atm/patches/600-arpd_includes.patch
new file mode 100644
index 0000000000..c753802766
--- /dev/null
+++ b/package/linux-atm/patches/600-arpd_includes.patch
@@ -0,0 +1,45 @@
+diff -Nru linux-atm-2.4.1.orig/src/arpd/io.c linux-atm-2.4.1/src/arpd/io.c
+--- linux-atm-2.4.1.orig/src/arpd/io.c 2001-09-03 21:41:05.000000000 +0300
++++ linux-atm-2.4.1/src/arpd/io.c 2007-04-14 18:30:54.000000000 +0300
+@@ -16,7 +16,7 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/ioctl.h>
+-#include <net/if.h>
++#include <linux/if.h>
+ #include <netinet/in.h>
+ #include <atm.h>
+ #include <linux/atmclip.h> /* for CLIP_DEFAULT_IDLETIMER */
+diff -urN linux-atm-2.4.1/src/arpd/arp.c linux-atm-2.4.1.new/src/arpd/arp.c
+--- linux-atm-2.4.1/src/arpd/arp.c 2001-09-03 20:41:05.000000000 +0200
++++ linux-atm-2.4.1.new/src/arpd/arp.c 2007-09-15 22:15:05.000000000 +0200
+@@ -15,7 +15,6 @@
+ #include <sys/types.h>
+ #include <sys/socket.h> /* for linux/if_arp.h */
+ #include <netinet/in.h> /* for ntohs, etc. */
+-#define _LINUX_NETDEVICE_H /* very crude hack for glibc2 */
+ #include <linux/if_arp.h>
+ #include <linux/if_ether.h>
+ #include <atm.h>
+diff -urN linux-atm-2.4.1/src/arpd/io.c linux-atm-2.4.1.new/src/arpd/io.c
+--- linux-atm-2.4.1/src/arpd/io.c 2001-09-03 20:41:05.000000000 +0200
++++ linux-atm-2.4.1.new/src/arpd/io.c 2007-09-15 22:15:05.000000000 +0200
+@@ -21,7 +21,6 @@
+ #include <atm.h>
+ #include <linux/atmclip.h> /* for CLIP_DEFAULT_IDLETIMER */
+ #include <linux/atmarp.h>
+-#define _LINUX_NETDEVICE_H /* glibc2 */
+ #include <linux/if_arp.h>
+
+ #include "atmd.h"
+diff -urN linux-atm-2.4.1/src/arpd/itf.c linux-atm-2.4.1.new/src/arpd/itf.c
+--- linux-atm-2.4.1/src/arpd/itf.c 2001-09-03 20:41:05.000000000 +0200
++++ linux-atm-2.4.1.new/src/arpd/itf.c 2007-09-15 22:15:05.000000000 +0200
+@@ -12,7 +12,6 @@
+ #include <sys/types.h>
+ #include <linux/atmclip.h>
+ #include <sys/socket.h>
+-#define _LINUX_NETDEVICE_H /* glibc2 */
+ #include <linux/if_arp.h>
+
+ #include "atmd.h"