From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=quarantine dis=none) header.from=redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 3CAAC5A0269 for ; Thu, 03 Dec 2026 16:11:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796310684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Xrt2Iko3NQa3s8BmWapR1YdMfqSXzAmT1ANAzN8sZ8E=; b=bRYcGnsRveHZ3h5TjUlchq6MZdz3vqfSeqaStW6EYcACzV8I5FaXuAVgdbMjEz97kqpTNZ V46ahmBXBKyF5YLNTChVthkxG3docSe+ka7h9PVD0qyDBKRNB3ArvEGIyU5lN93UeFYLWq eW1VQEv8L3oHdHjZgiVlU+dwBemh7Kk= X-MC-Rep: binary re single Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-512-ExihMdGbOd6L-laAhYXtnw-1; Thu, 3 Dec 2026 15:11:20 +0000 X-MC-Unique: ExihMdGbOd6L-laAhYXtnw-1 X-Mimecast-MFC-AGG-ID: ExihMdGbOd6L-laAhYXtnw_1796310679 Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2f053f9631cso190807955ad.1 for ; Thu, 03 Dec 2026 07:11:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796310679; x=1796915479; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id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4Jlw4aKiX8k263O7hZoqvAvQzKfsSsS3LrK1k= X-Received: by 2002:a17:903:3c45:b0:2f1:6b63:14a9 with SMTP id d9443c01a7336-2f16b631e9emr94739825ad.4.1796310679211; Thu, 03 Dec 2026 07:11:19 -0800 (PST) X-Received: by 2002:a17:903:3c45:b0:2f1:6b63:14a9 with SMTP id d9443c01a7336-2f16b631e9emr94739475ad.4.1796310678675; Thu, 03 Dec 2026 07:11:18 -0800 (PST) Received: from [192.168.2.15] (lnsm6-montreal02-142-122-43-105.internet.virginmobile.ca. [142.122.43.105]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f0c42b1sm221135875ad.17.2026.12.03.07.11.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 07:11:18 -0800 (PST) Message-ID: <95ec1e40-1c1b-4f18-97cd-7236d01ffa0a@redhat.com> Date: Thu, 3 Dec 2026 10:11:15 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] netlink: Ignore routes via gateways from another address family To: Stefano Brivio References: <20261202225147.2903249-1-jmaloy@redhat.com> <20261203000402.5ceb5db2@elisabeth> From: Jon Maloy In-Reply-To: <20261203000402.5ceb5db2@elisabeth> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Ar_XY-BJ8bC3rwk35-Ba1v2O_H2WIR9o3bnK2UnpWko_1796310679 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID-Hash: QWNAYZR64DFK2JAG7DOSOIKY7LOXQXGZ X-Message-ID-Hash: QWNAYZR64DFK2JAG7DOSOIKY7LOXQXGZ X-MailFrom: jmaloy@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 2026-12-02 18:04, Stefano Brivio wrote: > On Wed, 2 Dec 2026 17:51:47 -0500 > Jon Maloy wrote: > >> With NetworkManager's CLAT implementation, the IPv4 default route has >> an IPv6 gateway, given in a RTA_VIA attribute instead of RTA_GATEWAY: >> >> default via inet6 fe80::1 dev wlp170s0f0 proto static src 192.0.0.5 >> >> nl_get_ext_if() picks the interface of that route as template for >> IPv4, but nl_route_get_def() finds no IPv4 gateway, so we disable DHCP >> altogether, and the guest silently ends up without IPv4 connectivity, >> even if the host has it. >> >> We can't pass a gateway of a different address family on to the guest, >> so don't consider such routes in nl_get_ext_if(). If no other IPv4 >> routes are available, as in the case above, we fall back to local >> mode, which gives the guest a working IPv4 configuration: traffic >> still reaches the host via our sockets, and the host translates it. >> The address we would otherwise copy, from 192.0.0.0/29 (RFC 7335), is >> just a placeholder in CLAT setups anyway. >> >> Link: https://bugs.passt.top/show_bug.cgi?id=231 >> Suggested-by: Stefano Brivio >> Signed-off-by: Jon Maloy > > Thanks for the patch, could you perhaps resend as it is with the correct > Reported-by: tag and Cc'ing the reporter? > > By the way, at a quick glance, it might be nice to implement a fallback > for kernel version headers without 'rtvia_family' (before 4.1), but I'm > not sure how involved that is. On the other hand 4.1 is pretty old so > I don't think it's strictly necessary. > Reposted as v2. Regarding the kernel headers, Linux 4.1 is from 2015, so I think the risk is extremely low. I feel we can afford to wait until there is an actual bug report on this. ///jon