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) { if (first_v6) {
*v4 = IP_VERSION_ENABLED; *v4 = IP_VERSION_DISABLED;
*v6 = IP_VERSION_DISABLED; *v6 = IP_VERSION_ENABLED;
return first_v6; return first_v6;
} }