summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2018-04-15 21:23:39 +0200
committerThomas Deutschmann <whissi@gentoo.org>2018-04-15 21:23:53 +0200
commit1b28b8a212eb9657e45a074da43dfa8c8721c409 (patch)
treef688646debd43ceebfe276835f288dc9181b5a4c /sys-apps/iproute2/files
parentdev-db/mysql-connector-c: Restore lost ~arm64 keyword in -r1 (diff)
downloadgentoo-1b28b8a212eb9657e45a074da43dfa8c8721c409.tar.gz
gentoo-1b28b8a212eb9657e45a074da43dfa8c8721c409.tar.bz2
gentoo-1b28b8a212eb9657e45a074da43dfa8c8721c409.zip
sys-apps/iproute2: Restore auto inet family support
Closes: https://bugs.gentoo.org/652986 Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'sys-apps/iproute2/files')
-rw-r--r--sys-apps/iproute2/files/iproute2-4.16.0-keep-family.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-apps/iproute2/files/iproute2-4.16.0-keep-family.patch b/sys-apps/iproute2/files/iproute2-4.16.0-keep-family.patch
new file mode 100644
index 000000000000..d2940c9e927f
--- /dev/null
+++ b/sys-apps/iproute2/files/iproute2-4.16.0-keep-family.patch
@@ -0,0 +1,25 @@
+Bug: https://bugs.gentoo.org/652986
+
+https://marc.info/?l=linux-netdev&m=152363743818340&w=2
+
+--- a/lib/utils.c
++++ b/lib/utils.c
+@@ -568,7 +568,7 @@ static int __get_addr_1(inet_prefix *addr, const char *name, int family)
+ if (strcmp(name, "default") == 0) {
+ if ((family == AF_DECnet) || (family == AF_MPLS))
+ return -1;
+- addr->family = (family != AF_UNSPEC) ? family : AF_INET;
++ addr->family = family;
+ addr->bytelen = af_byte_len(addr->family);
+ addr->bitlen = -2;
+ addr->flags |= PREFIXLEN_SPECIFIED;
+@@ -579,7 +579,7 @@ static int __get_addr_1(inet_prefix *addr, const char *name, int family)
+ strcmp(name, "any") == 0) {
+ if ((family == AF_DECnet) || (family == AF_MPLS))
+ return -1;
+- addr->family = AF_UNSPEC;
++ addr->family = family;
+ addr->bytelen = 0;
+ addr->bitlen = -2;
+ return 0;
+--