From nobody Sun Jan 7 17:52:40 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 4T7Pt24Cpzz55XZQ for ; Sun, 7 Jan 2024 17:52: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 4T7Pt21vhWz4S8d for ; Sun, 7 Jan 2024 17:52:42 +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=1704649962; 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=He0g/PEKSe/cADsKZPnYZ2COLjpTzvSUxfojaqiEWq4=; b=eI3CAjgQGa4o/uILRzBK5+TyQzvbsnFstSdEJQ4Gnf+CPtuOq8VRH6OeYTEwUR2+qlajlX OCzEyIpsRgIkCnQGk11aSsGDFCcJyaqIhoxHRWj6LyT3JHQxD54DRetdOcYhUa/Qn8eUZ2 57KOQLiWvs6MNOg9BBSziX74mZ0rMT0mIGVHJitdoE+UscVzBXtEk6nwkOdWtlJMutz3KA cIwhct0EJWCr+DWpRCCcJ13uHjejB04qv3ssoywnFeC/wTfi+yfgjKEdUP4qlVYcY9YGv4 exqwZlobDbgZizQNhx4fIWZPWz+rmQdLuzcE+RUTvhO1hx84FBSePfF2XGWnpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704649962; a=rsa-sha256; cv=none; b=TqOQHC5iL9Ym4mfZdhwuuD7wetbcpJ9sZ8Ury74EKdn6ju2xzJKGO68JO1i8PEAhzZQuXU 5xaa9ZKJc0f+D9EQSF1u4XqKws1mzG4Kxa6AoBp8htnxcNzZDwuq9IAdzReGo5TZwdzvNc j6CXxjevldZkxfY9SD2hkxPGfXHmY0+qTCu7FX5ZE1MA3B8E/gP1ioQut5ZzCNPKH5JqTl w5Zf6Cx3HqhmwpfXX0z/xPsTXYG7c4b2KnZ/qMoEAuylUVjTeVeZBkn98XsSynOyxUzLMf xR+HR3jJLyQOtgAHHfqCwQm+ocnpuKHnoYtkxVeD3uOoKaQjhNrb6lAAf22rjQ== 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 4T7Pt20gsrzZHm for ; Sun, 7 Jan 2024 17:52: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 407HqgNd018315 for ; Sun, 7 Jan 2024 17:52:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 407HqgFG018314 for net@FreeBSD.org; Sun, 7 Jan 2024 17:52:42 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 17:52: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: 13.0-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: paul@redbarn.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: cc 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 paul vixie changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paul@redbarn.org --- Comment #10 from paul vixie --- in inet_addr(3) we see this text: INTERNET ADDRESSES Values specified using the =E2=80=98.=E2=80=99 notation take one of th= e following forms: a.b.c.d a.b.c a.b a When four parts are specified, each is interpreted as a byte of data a= nd assigned, from left to right, to the four bytes of an Internet address. Note that when an Internet address is viewed as a 32-bit integer quant= ity on the VAX the bytes referred to above appear as =E2=80=9Cd.c.b.a=E2= =80=9D. That is, VAX bytes are ordered from right to left. When a three part address is specified, the last part is interpreted a= s a 16-bit quantity and placed in the least significant two bytes of the network address. When a two part address is supplied, the last part is interpreted as a 24-bit quantity and placed in the least significant three bytes of the network address. When only one part is given, the value is stored directly in the netwo= rk address without any byte rearrangement. this is echoed by inet_net_ntop(3) -- same text. so, i never liked this or understood it, and i did not preserve this syntax= in inet_pton(), but it's still documented, and i think we ought to either make sure it isn't documented and never works anywhere, or that "route" should support it. i did preserve this in inet_net_pton(), so if "route" were to just use that, then these examples (10/8 or even just 10) would work as seems to still be expected. separately, inet_network() probably should use inet_net_pton() no= w. --=20 You are receiving this mail because: You are the assignee for the bug.=