Hello community,

here is the log from the commit of package iproute2 for openSUSE:Factory 
checked in at 2018-05-11 09:13:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/iproute2 (Old)
 and      /work/SRC/openSUSE:Factory/.iproute2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "iproute2"

Fri May 11 09:13:35 2018 rev:97 rq:605099 version:4.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/iproute2/iproute2.changes        2018-04-17 
11:11:02.728622194 +0200
+++ /work/SRC/openSUSE:Factory/.iproute2.new/iproute2.changes   2018-05-11 
09:13:38.048603348 +0200
@@ -1,0 +2,7 @@
+Wed May  2 06:13:55 UTC 2018 - [email protected]
+
+- utils-Do-not-reset-family-for-default-any-all-addres.patch:
+  fix parsing of "ip route add default via <ipv6_address>" command
+  (bsc#1091603)
+
+-------------------------------------------------------------------

New:
----
  utils-Do-not-reset-family-for-default-any-all-addres.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ iproute2.spec ++++++
--- /var/tmp/diff_new_pack.tkA5x9/_old  2018-05-11 09:13:39.008568573 +0200
+++ /var/tmp/diff_new_pack.tkA5x9/_new  2018-05-11 09:13:39.012568428 +0200
@@ -37,6 +37,7 @@
 Patch4:         xfrm-support-displaying-transformations-used-for-Mob.patch
 Patch6:         split-link-and-compile-steps-for-binaries.patch
 Patch7:         examples-fix-bashisms-in-example-script.patch
+Patch8:         utils-Do-not-reset-family-for-default-any-all-addres.patch
 Patch102:       Revert-emp-fix-warning-on-deprecated-bison-directive.patch
 BuildRequires:  bison
 BuildRequires:  db-devel
@@ -84,7 +85,7 @@
 
 %prep
 %setup -qn %name-%rversion
-%patch -P 1 -P 2 -P 3 -P 4 -P 6 -P 7 -p1
+%patch -P 1 -P 2 -P 3 -P 4 -P 6 -P 7 -P 8 -p1
 %if 0%{?sles_version} == 11
 %patch -P 102 -p1
 %endif


++++++ utils-Do-not-reset-family-for-default-any-all-addres.patch ++++++
From: David Ahern <[email protected]>
Date: Fri, 13 Apr 2018 09:36:33 -0700
Subject: utils: Do not reset family for default, any, all addresses
Patch-mainline: v4.17.0
Git-commit: d42c7891d26e4d5616a55aac9fe10813767fcf9c
References: bsc#1091603

Thomas reported a change in behavior with respect to autodectecting
address families. Specifically, 'ip ro add default via fe80::1'
syntax was failing to treat fe80::1 as an IPv6 address as it did in
prior releases. The root causes appears to be a change in family when
the default keyword is parsed.

'default', 'any' and 'all' are relevant outside of AF_INET. Leave the
family arg as is for these when setting addr.

Fixes: 93fa12418dc6 ("utils: Always specify family and ->bytelen in 
get_prefix_1()")
Reported-by: Thomas Deutschmann <[email protected]>
Signed-off-by: David Ahern <[email protected]>
Cc: Serhey Popovych <[email protected]>

---
 lib/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/utils.c b/lib/utils.c
index b9e9a6caaf54..803bcc45f2f2 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -566,7 +566,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;
@@ -577,7 +577,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;
-- 
2.16.3


Reply via email to