X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=package%2Fnetwork%2Futils%2Fiproute2%2Fpatches%2F300-ip_tiny.patch;h=14518dce1cf6bcc9f03fba1488cd2c6e26f23bae;hp=4295d0aae93272212ac5d165838cf66827349817;hb=f1bf282feff2bb4f45c5f4003e31d4719d8ed9fe;hpb=5fd0a58d81e9f724b6cc8da38fade95fe84faf5d diff --git a/package/network/utils/iproute2/patches/300-ip_tiny.patch b/package/network/utils/iproute2/patches/300-ip_tiny.patch index 4295d0aae9..14518dce1c 100644 --- a/package/network/utils/iproute2/patches/300-ip_tiny.patch +++ b/package/network/utils/iproute2/patches/300-ip_tiny.patch @@ -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); } @@ -86,22 +86,6 @@ 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) @@ -114,4 +98,4 @@ + 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 \