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.129.124]) by passt.top (Postfix) with ESMTPS id BA6E95A0269 for ; Thu, 03 Dec 2026 00:04:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796252648; 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=1Cstk7TEh+zJeP8xfR4t7eXb4G4x7kuuGDdzF2D6tbc=; b=JrkgLWvlg0jV8C6eVbgs3uvQRzNM04tmsiaVSqpGt48vjhDATjo3ZBCeSYatKwlGiVKLrm mUijTQFKsnWMo6SXJ+EVAr6T6jskd7ny9BlL82g9yRXM7IRoMyoxJEPomgFr+aVJCHA/1j jEqcG1grEOzwB9vX5mRS8B4rCMqY8Rc= X-MC-Rep: binary re single Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-101-Pe4PmEbdPPScr5BS7ZlyGA-1; Wed, 2 Dec 2026 23:04:06 +0000 X-MC-Unique: Pe4PmEbdPPScr5BS7ZlyGA-1 X-Mimecast-MFC-AGG-ID: Pe4PmEbdPPScr5BS7ZlyGA_1796252646 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-4bcda4c853aso4617597f8f.0 for ; Wed, 02 Dec 2026 15:04:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796252645; x=1796857445; h=date:content-transfer-encoding:content-type:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:sub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RSLdCiu+av6aeJUbrYcmg2XBwkdCSZ8C4eqGjw2Vt2AfTAiClZLEGTtiJ nl5fPhKDFC X-Received: by 2002:a05:600c:4584:b0:4b8:4af2:88b3 with SMTP id 5b1f17b1804b1-4bb88817aa2mr842592485e9.22.1796252645486; Wed, 02 Dec 2026 15:04:05 -0800 (PST) X-Received: by 2002:a05:600c:4584:b0:4b8:4af2:88b3 with SMTP id 5b1f17b1804b1-4bb88817aa2mr842592135e9.22.1796252644939; Wed, 02 Dec 2026 15:04:04 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb90660cb4sm1135348865e9.2.2026.12.02.15.04.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 15:04:04 -0800 (PST) From: Stefano Brivio To: Jon Maloy Subject: Re: [PATCH] netlink: Ignore routes via gateways from another address family Message-ID: <20261203000402.5ceb5db2@elisabeth> In-Reply-To: <20261202225147.2903249-1-jmaloy@redhat.com> References: <20261202225147.2903249-1-jmaloy@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Thu, 03 Dec 2026 00:04:03 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 1i-btlEoeGzAamGOZh0SQyk7kQfOcQ85rk5YHE0CNaA_1796252646 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: UZ3Z2DB533UJ4X4M2OQD5UJAS4MVP4V4 X-Message-ID-Hash: UZ3Z2DB533UJ4X4M2OQD5UJAS4MVP4V4 X-MailFrom: sbrivio@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 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. -- Stefano