summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-01-17 20:33:20 +0000
committerRoy Marples <roy@marples.name>2020-01-17 20:33:20 +0000
commit81bebec0b8e701ae03b5a3c5770db455ed6d9613 (patch)
tree5ad42cf2c965620d73f5712d4bb6a14a268da3fa /src/ipv6nd.c
parent230937aa482d0798a3dc789f96d7c8a9a57ab121 (diff)
downloaddhcpcd-81bebec0b8e701ae03b5a3c5770db455ed6d9613.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.c7
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)