diff options
| author | Roy Marples <roy@marples.name> | 2020-01-17 20:33:20 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-01-17 20:33:20 +0000 |
| commit | b895d40d8d31324824e5bcdf828a93ed3796eb7a (patch) | |
| tree | 5ad42cf2c965620d73f5712d4bb6a14a268da3fa /src/ipv6nd.c | |
| parent | f3971db2b372403e761b21bc7f32b708a558809f (diff) | |
| download | dhcpcd-b895d40d8d31324824e5bcdf828a93ed3796eb7a.tar.xz | |
inet6: Log expiration of a prefix if autoconf is not set
Rather than the address. Otherwise it looks wierd.
Diffstat (limited to 'src/ipv6nd.c')
| -rw-r--r-- | src/ipv6nd.c | 7 |
1 files changed, 5 insertions, 2 deletions
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) |
