From: Roy Marples Date: Fri, 17 Jan 2020 20:33:20 +0000 (+0000) Subject: inet6: Log expiration of a prefix if autoconf is not set X-Git-Tag: v9.0.0~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b895d40d8d31324824e5bcdf828a93ed3796eb7a;p=thirdparty%2Fdhcpcd.git inet6: Log expiration of a prefix if autoconf is not set Rather than the address. Otherwise it looks wierd. --- diff --git a/src/ipv6nd.c b/src/ipv6nd.c index c652e9ae..e755244c 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -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)