1
0
mirror of https://passt.top/passt synced 2024-12-22 05:35:23 +00:00

conf: Remove incorrect initialisation of addr_ll_seen

Despite the names, addr_ll_seen does not relate to addr_ll the same
way addr_seen relates to addr.  addr_ll_seen is an observed address
from the guest, whereas addr_ll is *our* link-local address for use on
the tap link when we can't use an external endpoint address.  It's
used both for passt provided services (DHCPv6, NDP) and in some cases
for connections from addresses the guest can't access.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
David Gibson 2024-08-21 14:20:07 +10:00 committed by Stefano Brivio
parent 0b25cac94e
commit 57532f1ded

1
conf.c
View File

@ -720,7 +720,6 @@ static unsigned int conf_ip6(unsigned int ifi,
}
ip6->addr_seen = ip6->addr;
ip6->addr_ll_seen = ip6->addr_ll;
if (MAC_IS_ZERO(mac)) {
rc = nl_link_get_mac(nl_sock, ifi, mac);