1
0
mirror of https://passt.top/passt synced 2024-06-27 21:42:42 +00:00

netlink: Fix swapped v4/v6-only flags in external interface detection

The effect of this typo became visible in an IPv6-only environment,
where passt wouldn't work at all.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-01-25 20:49:52 +01:00
parent caa22aa644
commit 64f7d81d9a

View File

@ -231,8 +231,8 @@ v6:
}
if (first_v6) {
*v4 = IP_VERSION_ENABLED;
*v6 = IP_VERSION_DISABLED;
*v4 = IP_VERSION_DISABLED;
*v6 = IP_VERSION_ENABLED;
return first_v6;
}