ip/ipconfig: unconditionally refresh when adding addresses manually (thanks chilledfrogs)

The issue is that ndb/cs refuses to serve ipv6 only
protocols (such as icmpv6) when it doesnt know we
have ipv6 addresses (link local).

So refreshing here is mandatory when we add/remove
our link-local addresses. As link-local addresses
are not added to ndb, so there is no change,
but ndb/cs still needs to get refreshed.
This commit is contained in:
cinap_lenrek 2025-01-12 04:16:03 +00:00
parent d73932922b
commit c4c1ce1093

View file

@ -556,8 +556,8 @@ doadd(void)
}
/* leave everything we've learned somewhere other procs can find it */
if(putndb(1))
refresh();
putndb(1);
refresh();
}
static void
@ -578,8 +578,8 @@ dodel(void)
warning("can't delete %I %M: %r", conf.laddr, conf.mask);
/* remove ndb entries matching our ip address */
if(putndb(0))
refresh();
putndb(0);
refresh();
}
static void