mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
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:
parent
d73932922b
commit
c4c1ce1093
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue