diff --git a/iputils-ADDLIB.diff b/iputils-ADDLIB.diff index f56cf97..d203f7d 100644 --- a/iputils-ADDLIB.diff +++ b/iputils-ADDLIB.diff @@ -1,12 +1,12 @@ ---- Makefile -+++ Makefile -@@ -5,8 +5,8 @@ +--- Makefile 2010-07-14 13:38:32.257045463 +0200 ++++ Makefile 2010-07-14 13:39:00.482319644 +0200 +@@ -4,8 +4,8 @@ DEFINES= #options if you have a bind>=4.9.4 libresolv (or, maybe, glibc) --LDLIBS=-lresolv +-LDLIBS= ADDLIB= +LDLIBS=-lresolv $(ADDLIB) - ifeq ($(LIBC_INCLUDE)/socketbits.h,$(wildcard $(LIBC_INCLUDE)/socketbits.h)) - ifeq ($(LIBC_INCLUDE)/net/if_packet.h,$(wildcard $(LIBC_INCLUDE)/net/if_packet.h)) + #options if you compile with libc5, and without a bind>=4.9.4 libresolv + # NOT AVAILABLE. Please, use libresolv. diff --git a/iputils-HZ.patch b/iputils-HZ.patch deleted file mode 100644 index e0cca8b..0000000 --- a/iputils-HZ.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- ping_common.c -+++ ping_common.c -@@ -548,7 +548,7 @@ - - /* If we are here, recvmsg() is unable to wait for - * required timeout. */ -- if (1000*next <= 1000000/(int)HZ) { -+ if (1000*next <= 1000000/(int)sysconf(_SC_CLK_TCK)) { - /* Very short timeout... So, if we wait for - * something, we sleep for MININTERVAL. - * Otherwise, spin! */ diff --git a/iputils-arping-set_device_broadcast.diff b/iputils-arping-set_device_broadcast.diff new file mode 100644 index 0000000..2ee101d --- /dev/null +++ b/iputils-arping-set_device_broadcast.diff @@ -0,0 +1,16 @@ +--- arping.c ++++ arping.c +@@ -335,8 +335,8 @@ void set_device_broadcast(char *device, unsigned char *ba, size_t balen) + exit(2); + } + +- for (p = ba, ch = 0; p < ba + balen; p++, ch += 3) +- *p++ = strtoul(brdcast->value + ch * 3, NULL, 16); ++ for (p = ba, ch = 0; p < ba + balen; ch += 3) ++ *p++ = strtoul(brdcast->value + ch, NULL, 16); + + return; + } +-- +1.7.1 + diff --git a/iputils-headers.patch b/iputils-headers.patch deleted file mode 100644 index 1179fcd..0000000 --- a/iputils-headers.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- arping.c -+++ arping.c -@@ -17,8 +17,10 @@ - #include - #include - #include --#include --#include -+#include -+#include -+#include -+#include - #include - - #include ---- rarpd.c -+++ rarpd.c -@@ -24,10 +24,11 @@ - #include - #include - #include --#include --#include -+#include -+#include - #include --#include -+#include -+#include - #include - - int do_reload = 1; -@@ -45,6 +46,8 @@ - extern int ether_ntohost(char *name, unsigned char *ea); - void usage(void) __attribute__((noreturn)); - -+#define ifaddr if_addr -+ - struct iflink - { - struct iflink *next; diff --git a/iputils-ifenslave.patch b/iputils-ifenslave.diff similarity index 100% rename from iputils-ifenslave.patch rename to iputils-ifenslave.diff diff --git a/iputils-ifenslave-1.1.0.tar.bz2 b/iputils-ifenslave.tar.bz2 similarity index 100% rename from iputils-ifenslave-1.1.0.tar.bz2 rename to iputils-ifenslave.tar.bz2 diff --git a/iputils-ss021109-pingnamelookuponce.diff b/iputils-pingnamelookuponce.diff similarity index 85% rename from iputils-ss021109-pingnamelookuponce.diff rename to iputils-pingnamelookuponce.diff index 3b3eb43..b743946 100644 --- a/iputils-ss021109-pingnamelookuponce.diff +++ b/iputils-pingnamelookuponce.diff @@ -1,6 +1,6 @@ diff -ur iputils/ping.c iputils.new/ping.c ---- iputils/ping.c 2004-03-17 12:36:43.000000000 +0100 -+++ iputils.new/ping.c 2004-03-17 12:35:49.000000000 +0100 +--- ping.c 2004-03-17 12:36:43.000000000 +0100 ++++ ping.c 2004-03-17 12:35:49.000000000 +0100 @@ -1141,15 +1141,24 @@ char * pr_addr(__u32 addr) @@ -32,8 +32,8 @@ diff -ur iputils/ping.c iputils.new/ping.c } diff -ur iputils/ping6.c iputils.new/ping6.c ---- iputils/ping6.c 2004-03-17 12:36:43.000000000 +0100 -+++ iputils.new/ping6.c 2004-03-17 12:36:29.000000000 +0100 +--- ping6.c 2004-03-17 12:36:43.000000000 +0100 ++++ ping6.c 2004-03-17 12:36:29.000000000 +0100 @@ -898,11 +898,22 @@ char * pr_addr(struct in6_addr *addr) { diff --git a/iputils-ss021109-locallinksyntax.diff b/iputils-ss021109-locallinksyntax.diff deleted file mode 100644 index 61305d4..0000000 --- a/iputils-ss021109-locallinksyntax.diff +++ /dev/null @@ -1,50 +0,0 @@ - -This patch for iputils allows to use the standard - -ping6 link-local-addr%interface - -syntax instead of ping6 -I interface link-local-addr. This matches -BSD ping. - -Please apply. - --Andi - - -diff -u iputils/ping6.c-o iputils/ping6.c ---- iputils/ping6.c-o 2005-07-08 02:21:34.000000000 +0200 -+++ iputils/ping6.c 2005-07-08 02:51:47.000000000 +0200 -@@ -268,6 +268,14 @@ - - target = *argv; - -+ if (!device) { -+ char *s = strchr(target, '%'); -+ if (s) { -+ device = s+1; -+ *s = 0; -+ } -+ } -+ - if (inet_pton(AF_INET6, target, &addr) <= 0) { - struct hostent *hp; - -@@ -296,6 +304,14 @@ - memset(&whereto, 0, sizeof(struct sockaddr_in6)); - whereto.sin6_family = AF_INET6; - whereto.sin6_port = htons(IPPROTO_ICMPV6); -+ -+ if (!device) { -+ char *s = strchr(target, '%'); -+ if (s) { -+ device = s+1; -+ *s = 0; -+ } -+ } - - if (inet_pton(AF_INET6, target, &whereto.sin6_addr) <= 0) { - struct hostent *hp; - - - --- diff --git a/iputils-ss021109-open_max.diff b/iputils-ss021109-open_max.diff deleted file mode 100644 index 00c7866..0000000 --- a/iputils-ss021109-open_max.diff +++ /dev/null @@ -1,13 +0,0 @@ -Index: iputils/rdisc.c -=================================================================== ---- iputils.orig/rdisc.c 2007-12-12 15:41:01.000000000 +0100 -+++ iputils/rdisc.c 2007-12-12 15:42:15.000000000 +0100 -@@ -246,7 +246,7 @@ void do_fork(void) - if ((pid=fork()) != 0) - exit(0); - -- for (t = 0; t < OPEN_MAX; t++) -+ for (t = 0; t < sysconf(_SC_OPEN_MAX); t++) - if (t != s) - close(t); - diff --git a/iputils-ss021109-ping-R-option-doc.diff b/iputils-ss021109-ping-R-option-doc.diff deleted file mode 100644 index 316a622..0000000 --- a/iputils-ss021109-ping-R-option-doc.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- iputils/doc/ping.8 -+++ iputils/doc/ping.8 -@@ -118,7 +118,7 @@ - when finished. - .TP - \fB-R\fR --Record route. -+Record route. (IPv4 only) - Includes the RECORD_ROUTE option in the ECHO_REQUEST - packet and displays the route buffer on returned packets. - Note that the IP header is only large enough for nine such routes. ---- iputils/doc/ping.sgml -+++ iputils/doc/ping.sgml -@@ -200,7 +200,7 @@ - -