From nobody Thu Oct 13 08:09:42 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 4Mp2HV3BJgz4fNcT for ; Thu, 13 Oct 2022 08:09:42 +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 4Mp2HV1t8jz3nX9 for ; Thu, 13 Oct 2022 08:09:42 +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 4Mp2HV0ygTzMJs for ; Thu, 13 Oct 2022 08:09:42 +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 29D89gsZ057944 for ; Thu, 13 Oct 2022 08:09:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29D89gOE057941 for bugs@FreeBSD.org; Thu, 13 Oct 2022 08:09:42 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:42 +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=1665648582; 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=cQiM8uDfltaTUea+irIvsdLS6pKA4OEKWbViNQ3e7k8=; b=Mez9lERSH7pEuHyu5XksqvZ6XLIDjKFq1xMsHtwGgeOnZvdD0aITA2AShlA8EYK/VGsLfh fv9Futw49wbX3E3oU+IbAIBwOp7BlYJcgmE669zkd3l9cx5YMmRzDoyJgUZSp4s3G2Ozvs E3RAjEuqzwu+9gw2Lk2aimf5InVgFQ7WrnMnHHpxMoksp1HV4p2l1ayWqxQICmvBGXvKvg V98eaz2p22dUbqe02chSKBigU4y4UHErFEaUXyWY+uMvTUPH3wjg8B+tZnYtK3axMz+nU6 Arcfwj8/sPmR2jNTxDexiDaNpY3vPh14awFKO9Zm59KdEC4Wf7HsGwdM53n0Yg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665648582; a=rsa-sha256; cv=none; b=qXrTOSMUcOPNDKxO79QRSIj7xCl8lo6Qs52j8u9s5bYPweR3YEf9ZLgEku9MS8DAskJ4V/ Ku/QmUB6qkCu5rRDu/V2QczH15BBLGy3WKpanVTUEIrOeaCsp/RNcUKEtRH1t8yvLyGA6F FcgiSaJf9Nyu/E5BZF2iQh3a+ZCRzdwH3TyDPTJ7GBBz0ZdmKzp8bNu4Sx25KPTQkXIdxt 6WK5ibYrNzISL1sMczC8yt31B2jI4JfZBkvTuEliboQsb1KbaILEaOTuQSVbtWwYf03giY m8pbr0CgP/M1sW6ApowVq4pfsuiCC5GnYUxVzPX/8AXkjfADnpHKuMzF/cDd6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241792 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D80e991888d79e036c03461d8264eea08a= 1dc67d8 commit 80e991888d79e036c03461d8264eea08a1dc67d8 Author: Kristof Provost AuthorDate: 2022-10-05 10:11:07 +0000 Commit: Kristof Provost CommitDate: 2022-10-13 07:56:54 +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.=