]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
inet6: Log expiration of a prefix if autoconf is not set
authorRoy Marples <roy@marples.name>
Fri, 17 Jan 2020 20:33:20 +0000 (20:33 +0000)
committerRoy Marples <roy@marples.name>
Fri, 17 Jan 2020 20:33:20 +0000 (20:33 +0000)
Rather than the address. Otherwise it looks wierd.

src/ipv6nd.c

index c652e9ae4cc116a240ea8d20c761760256719688..e755244cac4f58594af732ccb9dad1b654077159 100644 (file)
@@ -1649,8 +1649,11 @@ ipv6nd_expirera(void *arg)
                            &ia->acquired, NULL);
                        if (elapsed > ia->prefix_vltime) {
                                if (ia->flags & IPV6_AF_ADDED) {
-                                       logwarnx("%s: expired address %s",
-                                           ia->iface->name, ia->saddr);
+                                       logwarnx("%s: expired %s %s",
+                                           ia->iface->name,
+                                           ia->flags & IPV6_AF_AUTOCONF ?
+                                           "address" : "prefix",
+                                           ia->saddr);
                                        if (if_address6(RTM_DELADDR, ia)== -1 &&
                                            errno != EADDRNOTAVAIL &&
                                            errno != ENXIO)