From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 10/22] netlink: Fix swapped v4/v6-only flags in external interface detection Date: Fri, 28 Jan 2022 19:33:45 +0100 Message-ID: <20220128183357.3407606-11-sbrivio@redhat.com> In-Reply-To: <20220128183357.3407606-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3906032206311961131==" --===============3906032206311961131== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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(-) 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; } -- 2.33.0 --===============3906032206311961131==--