From nobody Wed Oct 05 10:25:59 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mj9hR6STGz4dvYg for ; Wed, 5 Oct 2022 10:25:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mj9hR5NB1z3GRL for ; Wed, 5 Oct 2022 10:25:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mj9hR4LMRzsSG for ; Wed, 5 Oct 2022 10:25:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 295APxT9088155 for ; Wed, 5 Oct 2022 10:25:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 295APxp3088154 for bugs@FreeBSD.org; Wed, 5 Oct 2022 10:25:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 241792] dhclient/dhclient-script: dhclient default route not working when given a /32 netmask Date: Wed, 05 Oct 2022 10:25:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664965559; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1j6ufUSOtC2JYS6vGMV8YkXViCcZjqCcIZRpVLcNR9g=; b=C65kt0I0gj5oxk92wzDCARR0cwTaE1dFiFs3ShnUI5/4P8+4TMO8uraSYz8ady2xCQiasK 8vdjOCkwu+V8UElQ/Fiu2Z/4e7Fns/nXA9k9TECpGQACgIbD944Au7m9kmiCm2DI4W5VK0 yvzgD3wVbXDbLaHFCcQuUcJbsQFX5QTQk7VmhNjj5FMSy7BDN2Gkn5nej49Uy7E5Dk7c5O yvr440szJpImdECJ0W991S1FgadohjavNyRaqUVcejzeFODIGfxrfiwq3QTV5qfoRii6z7 qvns+ohcIDcB3MKjK3LUIFpH1hE0f0nIFJWLVb6oSKmW5QPwOeUETAW8DDjjxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664965559; a=rsa-sha256; cv=none; b=iH/GpAlixiNLzzgBTnCsshRhuduXs4Ts38gbDg2fSZMxsHPFQa1l3jSMzuojEnBun+GG2a khurMrphHYukYfNXVybllS93TZGiMru6lyRY9NaEEflaolhbPy1ZGP0pp+nBNXVIM+7U8O d17u1K3OfGoTLyRTSqWw7eqi23K5q9DxmbeOljnj6VadU58ZxSvSNggSWK+A3R0qeUYVXt qm4rbROKIPPorDwwYdh5F7V4p3/L9p2CPC1XtJvGMelXiv5WOpldKC2nsBu0HoDfl6Y0Yc BGpfWaD77jkTtXiG9AVejk6ltMGatUsjS6+c800jpNcnzR29Na9kpfprZMjdrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241792 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dfd6ecc184dbc64b9b3f7866b34812fb93= df62925 commit fd6ecc184dbc64b9b3f7866b34812fb93df62925 Author: Kristof Provost AuthorDate: 2022-10-05 10:11:07 +0000 Commit: Kristof Provost CommitDate: 2022-10-05 10:24:31 +0000 dhclient-script: cope with /32 address leases On certain cloud platforms (Google Cloud, Packet.net and others) the DHCP server offers a /32 address. This makes adding the default route fail since it is not reachable via any interface. Linux's dhclient-script seem to usually have a special case for that and explicitly adds an interface route to the router's address. FreeBSD's dhclient-script already has a special case for when the router address is the same as the leased address. Now also add one for when it's a different address that doesn't fall in the interface's subnet. PR: 241792 Event: Aberdeen hackathon 2022 Submitted by: sigsys@gmail.com Reviewed by: dch, kp, bz (+1 on the idea, not reviewed), thj MFC after: 1 week sbin/dhclient/dhclient-script | 4 ++++ 1 file changed, 4 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=