[PATCH 2/2] pif: Correctly set scope_id for guest-side link local addresses
pif_sockaddr() is supposed to generate a suitable socket address, either
for the host, or for the guest, depending on the 'pif' parameter. When
given a link-local address, this means it needs to generate a suitable
scope_id to specify which link. It does this for the host, but not for the
guest.
I think this was done on the assumption that we won't ever generate guest
side link local addresses when forwarding connections. That, however, is
not the case, at least with the recent extensions to "local mode". Fix the
problem by properly populating the scope_id field for guest addresses.
Link: https://bugs.passt.top/show_bug.cgi?id=181
Signed-off-by: David Gibson
participants (1)
-
David Gibson