From nobody Thu Oct 13 08:09:40 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 4Mp2HT18jlz4fNZC for ; Thu, 13 Oct 2022 08:09:41 +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 4Mp2HT09tDz3nV7 for ; Thu, 13 Oct 2022 08:09:41 +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 4Mp2HS6LzMzLyG for ; Thu, 13 Oct 2022 08:09:40 +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 29D89ee3057887 for ; Thu, 13 Oct 2022 08:09:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29D89eRf057886 for bugs@FreeBSD.org; Thu, 13 Oct 2022 08:09:40 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: Thu, 13 Oct 2022 08:09:40 +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: Closed X-Bugzilla-Resolution: FIXED 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=1665648581; 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=zSxqhEN0h455mjV+M0LT8HCkT3kRdXYb+zMMqsnuMs0=; b=tEU4jOsZmkCERz3zUe4Yb3KZlAyVv/blTdhXjkdIf9maiP2f4+LRGD/EOW2O1rvKEnpY/2 oVtJisElk6LTTbPjI1AAUIl9MnX+ceKSe9nwy0Lir54kx1lmIdEXigXJUwF76mrTx7ZmH/ MgAwq+ks+JLXNhhtF43ZEA8AQp1yJHlyetecZnyOHU6KBMBxOIYDBA4ohogPGByzCEbfRp 5eCdfX0l6zX9IN0Lgca0ex+uudXSeWf3GF3sVAWi2xvcNoSvuEtIyW4Hyowfe7791yMtJE 0WllMp5sio1l8pZodxLBXSB+tEUwyA3eJE3GKVz1jwUwg2dQTiqdrXmQxghdzQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665648581; a=rsa-sha256; cv=none; b=cF9GAJh/WV5d2WFHU7zZTdnXqirCYuQ4WsOkj2y8c/IdswHfXPRRhO5Ysi5tBIJVohAyG7 rTfiz6/Z01M+fHtbXBRzE0cnBLE1FgTplZKb/p09NR/D0mfknP2yAhxmrdh+sOSmWk4qor 5iHvmSRtYywAo6BOrCN9UbWmFHYruireLgZ+DJAegTs8HtsHi+B1oUzjTRBQwC9Ur2WnYD p8JvozWyNziIHwiV3zN3XXaPn3R3mLhIy52f5G3N0zsWK9Syd+bNW6RHdSEOGIHLMxeRq8 tN5PnxEkDX8xbp7pL1IwCNYBOTJuiOhNsRbGIP/2iNYxTW0gBpXuFN5nXaJ26A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241792 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D7ca75b93b9facd6dd0a733f25f577a1c9= 862a46b commit 7ca75b93b9facd6dd0a733f25f577a1c9862a46b Author: Kristof Provost AuthorDate: 2022-10-05 10:11:07 +0000 Commit: Kristof Provost CommitDate: 2022-10-13 07:56:50 +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 (cherry picked from commit fd6ecc184dbc64b9b3f7866b34812fb93df62925) sbin/dhclient/dhclient-script | 4 ++++ 1 file changed, 4 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=