Bug#869995: fixed in systemd 235-1

Marc Haber mh+debian-bugs at zugschlus.de
Mon Oct 16 17:58:54 BST 2017


found #869995 235-1
thanks

I regret to inform you that the fix given in this bug report didn't make
it into upstream 235. The issue reappears after the update to systemd
235, the patches do still apply to the code (with some fuzz, but without
rejection), the issue disappears with the patched software.

Patch attached

Greetings
Marc

--
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421
-------------- next part --------------
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -973,7 +973,10 @@ int config_parse_address_scope(const cha
 bool address_is_ready(const Address *a) {
         assert(a);
 
-        return !(a->flags & (IFA_F_TENTATIVE | IFA_F_DEPRECATED));
+	if (a->family == AF_INET6)
+		return !(a->flags & (IFA_F_TENTATIVE));
+	else
+		return !(a->flags & (IFA_F_TENTATIVE | IFA_F_DEPRECATED));
 }
 
 int config_parse_router_preference(const char *unit,
--- a/src/network/networkd-ndisc.c
+++ b/src/network/networkd-ndisc.c
@@ -186,6 +186,10 @@ static void ndisc_router_process_autonom
                 return;
         }
 
+        /* The preferred lifetime is never greater than the valid lifetime */
+        if (lifetime_preferred > lifetime_valid)
+                return;
+
         r = address_new(&address);
         if (r < 0) {
                 log_link_error_errno(link, r, "Could not allocate address: %m");


More information about the Pkg-systemd-maintainers mailing list