From nobody Sun Jan 7 19:21:02 2024 X-Original-To: net@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 4T7Rqz16htz55l8l for ; Sun, 7 Jan 2024 19:21:03 +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 4T7Rqy524Fz4gp9 for ; Sun, 7 Jan 2024 19:21:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704655262; 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=Q8/u46L5CmeX15u+Bn36WvC/9Ov6yPHaWjdmdZCBeVk=; b=J6tR+cd0j1iJJ+kyQoRTgmeowAbEu8oHAeb/y5B/y4HryJhN9rKkmCklujB50BhnfjS6y5 SxtQAOOvNZtfwr4C7UUZO+o5cRZVP2GNnvSOC9u6qL3PjuKJqQFyI6w7XCDSMbcjiCsaIs UgHOpUZCKkj1mYCknCAxiIJYhlgCDyoN4IYhE70JUZ5/PTL9uZrm+34504wbB2pqVSBo+W aS6PgmCXLQ1V2f/wLTx43GorpRNhf3/f1bPWfGKpjdn8zPHfigvrDzJ7Gt6qsdN5rzQVMH B1vSBugjCsO7VI2qaXi0QurcupKrDE5DZPwJSo/C0ebgsD34I9vRr7oLQ3yG1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704655262; a=rsa-sha256; cv=none; b=X+VJAinaPVQp1uAxfok7DxWrEcCw5L63y75BWY4v5M9Q37sUELHzeA5Op5At1d7pCqreyN Wqie9RNBvc/Ulia9T3aSMZu6upsdWun8dUT2D7Isq5RLujKRR380Tf7ijMcGUvbazid+Ku 8CWQaIXe4bkxuvcv0ohOEs4TGMRZSbkzT1x/NJbzg7oaAzohFuOvzxVfGmcNEkLuBjw73e rM5NaBDnHY/9q8Dir2vofMcgq6sbkQNnemkzQ0PPoRtqKaxIWLv3yciP5m6BiIQI2xwLXn uUNQk69Fu25czyqKESs4q4/UdROctOuDvOdMgedycUGvTh9yfMMaNSAiIkthEw== 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 4T7Rqy455CzcFM for ; Sun, 7 Jan 2024 19:21:02 +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 407JL2ss048196 for ; Sun, 7 Jan 2024 19:21:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 407JL2tc048195 for net@FreeBSD.org; Sun, 7 Jan 2024 19:21:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 258874] route add -inet 240/4 results in 0.0.0.0/4 127.0.0.1 UGRS lo0 Date: Sun, 07 Jan 2024 19:21:02 +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: 13.0-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: karels@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258874 --- Comment #11 from Mike Karels --- (In reply to paul vixie from comment #10) I hadn't realized that inet_pton required 4 components; it took a search in= the man page to find that in the standards section. The man page should be clarified, in particular the INTERNET ADDRESSES section, to say which funct= ions use these conventions. > so, i never liked this or understood it, and i did not preserve this synt= ax in inet_pton(), but it's still documented, and i think we ought to eithe= r make sure it isn't documented and never works anywhere, or that "route" s= hould support it. It's far too late to change inet_aton(), etc; they have had this behavior f= or 40 years, and it is in the other BSDs too. In fact, route uses inet_aton(), and supports this behavior. It just isn't the behavior that some people expect. Worse, as noted in comment 6, route had special code to "do what I mean" and shifted the address until the most-significant octet was non-zero= .=20 That was removed from route about 13.x. When this bug was first opened in 2021, I thought that we should restore that behavior to avoid breaking thin= gs.=20 However, it has been long enough that most people have adapted. Now I thin= k we should detect the incorrect values and fail, rather than doing something nonsensical. Unfortunately, we had neither change in place for 13.2 or 14.= 0, and now there are new people upgrading from 12.x now that it is EOL. --=20 You are receiving this mail because: You are the assignee for the bug.=