From 64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 25 Jan 2022 20:49:52 +0100 Subject: 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 --- netlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'netlink.c') diff --git a/netlink.c b/netlink.c index 3ba5f05..532868d 100644 --- a/netlink.c +++ b/netlink.c @@ -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; } -- cgit v1.2.3