iproute2: update to v4.0.0
authorSteven Barth <cyrus@openwrt.org>
Mon, 20 Apr 2015 06:26:09 +0000 (06:26 +0000)
committerSteven Barth <cyrus@openwrt.org>
Mon, 20 Apr 2015 06:26:09 +0000 (06:26 +0000)
The most significant change from the previous version is the trimming of
the 300-ip_tiny.patch to lib/utils.c where a section previously patched
had vanished.  That section of the patch was removed.

Built and lightly tested on ar71xx against uClibc and musl.

Signed-off-by: Russell Senior <russell@personaltelco.net>
SVN-Revision: 45512

package/network/utils/iproute2/Makefile
package/network/utils/iproute2/patches/006-no_sctp.patch
package/network/utils/iproute2/patches/120-libnetlink-pic.patch
package/network/utils/iproute2/patches/300-ip_tiny.patch
package/network/utils/iproute2/patches/900-drop_FAILED_POLICY.patch

index a2dae6d61b65668d36c913bc3a3d11d1445b2ebf..308ec578e12292b80865f09565631d56be22ab1c 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=iproute2
-PKG_VERSION:=3.19.0
+PKG_VERSION:=4.0.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://kernel.org/pub/linux/utils/net/iproute2/
-PKG_MD5SUM:=237083a1e3c388cde7a115a5724dc72a
+PKG_MD5SUM:=3adc263ade4ee76c35032e8f50b54108
 PKG_BUILD_PARALLEL:=1
 PKG_LICENSE:=GPL-2.0
 
index a3b2880d5a303c9d7beb3bc2764903f7f4ce12b4..4aa988415e80a30c9f1abc008b7bf78c46217a92 100644 (file)
@@ -8,7 +8,7 @@
        case IPPROTO_DCCP:
        default: /* XXX */
                if (sel->sport_mask)
-@@ -1336,7 +1335,6 @@ static int xfrm_selector_upspec_parse(st
+@@ -1337,7 +1336,6 @@ static int xfrm_selector_upspec_parse(st
                switch (sel->proto) {
                case IPPROTO_TCP:
                case IPPROTO_UDP:
index 26cc569dbff7a933aa1420e02a13ce5fc27c9fd0..19ccd1a936f871f235561e6787545b1e760bd380 100644 (file)
@@ -7,5 +7,5 @@
 -CFLAGS += -fPIC
 +CFLAGS += $(FPIC)
  
- UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o namespace.o
+ UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o namespace.o \
+       names.o
index 4295d0aae93272212ac5d165838cf66827349817..14518dce1cf6bcc9f03fba1488cd2c6e26f23bae 100644 (file)
@@ -70,7 +70,7 @@
  };
 --- a/lib/utils.c
 +++ b/lib/utils.c
-@@ -630,6 +630,7 @@ const char *rt_addr_n2a(int af, const vo
+@@ -642,6 +642,7 @@ const char *rt_addr_n2a(int af, const vo
        case AF_INET:
        case AF_INET6:
                return inet_ntop(af, addr, buf, buflen);
@@ -78,7 +78,7 @@
        case AF_IPX:
                return ipx_ntop(af, addr, buf, buflen);
        case AF_DECnet:
-@@ -638,6 +639,7 @@ const char *rt_addr_n2a(int af, const vo
+@@ -650,6 +651,7 @@ const char *rt_addr_n2a(int af, const vo
                memcpy(dna.a_addr, addr, 2);
                return dnet_ntop(af, &dna, buf, buflen);
        }
        default:
                return "???";
        }
-@@ -713,6 +715,7 @@ const char *format_host(int af, int len,
-                       case AF_INET6:
-                               len = 16;
-                               break;
-+#ifndef IPROUTE2_TINY
-                       case AF_IPX:
-                               len = 10;
-                               break;
-@@ -723,6 +726,7 @@ const char *format_host(int af, int len,
-                               len = 2;
-                               break;
- #endif
-+#endif
-                       default: ;
-                       }
-               }
 --- a/lib/Makefile
 +++ b/lib/Makefile
 @@ -4,6 +4,10 @@ ifeq ($(IP_CONFIG_SETNS),y)
 +
  CFLAGS += $(FPIC)
  
- UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o namespace.o
+ UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o namespace.o \
index 7b82933181d6761b7471bc86f9d6c97fbebd0517..f5d2dfe9b9bd34906f3210d6ddcb69c7085c3c9b 100644 (file)
@@ -24,7 +24,7 @@ Subject: [PATCH] add support for dropping with FAILED_POLICY
  
 --- a/include/linux/rtnetlink.h
 +++ b/include/linux/rtnetlink.h
-@@ -203,6 +203,7 @@ enum {
+@@ -208,6 +208,7 @@ enum {
        RTN_THROW,              /* Not in this table            */
        RTN_NAT,                /* Translate this address       */
        RTN_XRESOLVE,           /* Use external resolver        */