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 19BED5A0271 for ; Fri, 04 Dec 2026 23:31:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796423485; 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=5PlFkWvDg5Nfw5ViqlVG8owPVErgMIrdwYX5Taq5MC4=; b=P3/IshAsFe29p67b1ueitU9OwJE6/4NkBB1jg2tSr9ZZpUPDXIYbfYc6/4mD7dpmD+8z8k S4VbO4p2Eb/nMWY5EV2+NmVBgktpPVAziKjMirYgDU9+XwKc9jJnK1vIbKtgeOvX1xRe20 D0A+I8adjFie9R1alczHmb0EDHHJznM= X-MC-Rep: binary re single Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-594-tT_T6ftFPEeok8O-MwuFWw-1; Fri, 4 Dec 2026 22:31:22 +0000 X-MC-Unique: tT_T6ftFPEeok8O-MwuFWw-1 X-Mimecast-MFC-AGG-ID: tT_T6ftFPEeok8O-MwuFWw_1796423481 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-499ca65ae87so881150f8f.1 for ; Fri, 04 Dec 2026 14:31:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796423481; x=1797028281; 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:subject:date:message-id :reply-to:content-type; bh=5PlFkWvDg5Nfw5ViqlVG8owPVErgMIrdwYX5Taq5MC4=; b=CK5IXZ+xeH/rrTAn8SMsHjJYGxZN6N4p6uoicDW1IVf6cuzarxUfgTlp+Cz10MuArI 6tQkz7jIApCPk/qSvJAdAIH46YmwWf2aiQv9FSOjAFUkjUJv5G0k7719ni5Rb+XoHIBt llia5YbuY0npgPlV9X7MK75qoGQrnQ1yKc5mp9e2CU9iMgcsOv2pb/52K8DwIMEFNeHj 14tYyc6RIXRg3QLFefhO8SFNEx5TofDlBc6JsUSOfLzav4+eXFljE10bWjis13E/Ulo1 34IV7Hd0XyZJRqSSWOMEkKY4QFhIOb6nFvLqe4bcx4aGEh5h3/EpwG4+LLco5KHbok+x 81iw== X-Gm-Message-State: AB4q+uGVkVZD2RsSfkjIcFtQdR/OPEj2p2GJyidRqbJrkroJO87Zfon4 oqlyQnJGHc5ur7zVrEpd9aq1ALaW82h1jSHqw1vCZ3yICPHvOTlYQYrfcTvkI1CzA39tmoyLRnn o1O1nGjBtKg8fz0Z2L06WgbdTl9IgGMYRc69uzQggaWbYX78PvByH9A== X-Gm-Gg: AZFdTZdjNkvkkp8KNhc7tE+SerNcrYE4XEcjzg/zFHt+fxC4vDoZ091AodpWayb5T6O ULiRVwuB77yHqabWdcTJ3Fibc6sAoY9rOpk2NkUBGIi68fWYQtY0FrhA7xf2Btf6288peKmW08F dwVs4wjFkigYN5DrIEnpzkH7GYmtx9k53KsD6iADvXTXbf6EezyGKhT902qUapw6GSXQV5XAK/h LTyFxMmlsXamImFnA0T29/+WXKt5bscLWPVbsc4v+afJiiomqux+PAc3Fuw2tIlvx1e2i64IHhA WOm0TGbszGPQWVK3i0dFZNKmQA1SPzYa6gTNJR4SMPe+MtuOAno+rUZ9Ez2sRK7splrTYP2mhEK DKG1UhnX/l7RQlD1fB883UAR/4NpL3qQuVES+VgA9lP2eoea7Ggu43xIBLJ/TLK5oDaU= X-Received: by 2002:a05:6000:2209:b0:4af:e519:cce5 with SMTP id ffacd0b85a97d-4cf44614871mr14163320f8f.3.1796423474740; Fri, 04 Dec 2026 14:31:14 -0800 (PST) X-Received: by 2002:a05:6000:2209:b0:4af:e519:cce5 with SMTP id ffacd0b85a97d-4cf44614871mr14163285f8f.3.1796423474250; Fri, 04 Dec 2026 14:31:14 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d1724ad151sm7562525f8f.15.2026.12.04.14.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 14:31:13 -0800 (PST) From: Stefano Brivio To: Jon Maloy Subject: Re: [PATCH v2] netlink: Ignore routes via gateways from another address family Message-ID: <20261204233112.04c2a444@elisabeth> In-Reply-To: <20261203150441.3175883-1-jmaloy@redhat.com> References: <20261203150441.3175883-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: Fri, 04 Dec 2026 23:31:13 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: hsN-xGCgrO8h3CB14Z_oTZZcxXp3KP4kmdBuk0M1mIM_1796423481 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: O2HUAVGCIB43DUVBOMBKDWRK5QLAJBMA X-Message-ID-Hash: O2HUAVGCIB43DUVBOMBKDWRK5QLAJBMA 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, zerica@callcc.eu 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 Thu, 3 Dec 2026 10:04:41 -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 > Reported-by: Erica Z > Suggested-by: Stefano Brivio > Signed-off-by: Jon Maloy Applied. -- Stefano