mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
networkd: Drop IPv6LL address when link is down
Now we are not dropping the IPv6LL address when link is down. So next time when link is up and before kernel acquired this address we are using the old address. When the link is down kernel tells us that this address is no longer valid . Let's remove this address and again when kernel tells us that the address is added let's use it. fixes #3264
This commit is contained in:
parent
4e080f502a
commit
f150100ad4
@ -98,6 +98,9 @@ void address_free(Address *address) {
|
||||
if (address->link) {
|
||||
set_remove(address->link->addresses, address);
|
||||
set_remove(address->link->addresses_foreign, address);
|
||||
|
||||
if (in_addr_equal(AF_INET6, &address->in_addr, (const union in_addr_union *) &address->link->ipv6ll_address))
|
||||
memzero(&address->link->ipv6ll_address, sizeof(struct in6_addr));
|
||||
}
|
||||
|
||||
free(address);
|
||||
|
Loading…
Reference in New Issue
Block a user