From nobody Sat Jan 27 15:40:22 2024
X-Original-To: dev-commits-src-all@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 4TMf064cfwz58R4h;
	Sat, 27 Jan 2024 15:40:22 +0000 (UTC)
	(envelope-from git@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 4TMf063mLNz4PFk;
	Sat, 27 Jan 2024 15:40:22 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1706370022;
	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;
	bh=b8CEYXfFPIc44+WXizSUhVMz/dHa5i+rBWY+YfNkKLY=;
	b=G2kr2uQNlDQuLWHmQLHWCkh83UPvhlXff+Ftau2y10QU9lllbTTiENQ6K1lMhpOhpK5+i2
	y1PNo6zNlY68RsXs/zOXr2IYVjgbZngF61fgCDgi1MMow2MBoNBAe1uqH9bwIUT8zQNpHk
	ZSdORL4SsjgWGr9E7SyvtFu+HCHC/TSmBt5UWbHdNcjPNq3E70HT1yzYNNG0D7HpamZL72
	HaNVz/QSYIZ9cMml5qg7w45ecesSegpyQ1RXsYfixrYikWPYpOEnV1fRUul4huJwpHGatv
	FcXaPLdRnZLh39oH8z6HmX2abhOaLhbAhFyUjC8mL7c6bZVcrfKXdQp+NkRAQQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1706370022;
	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;
	bh=b8CEYXfFPIc44+WXizSUhVMz/dHa5i+rBWY+YfNkKLY=;
	b=syVdojf++7U8ymtNS9nUe0XBJd+Dr/JPhO5i5/BFSzv6g/9x3BvEWByAEJZ+MI7BJVXXlh
	SsnkfMwRx/Ty++WklSeSPsL9zYXRvnDcnM/sy5YKDR+FqdM1tAvQKjdTVbnCDLftIVQFce
	BwAQecq7ZGWeZWh/gEPoTKahP9bfbL4XRZ/ugjKsREcDpSty7AGZVDwr6AiPhinSxRnSfN
	PX3sA14o7Nd5GMGiQFy+cwfNei093FGowvASquSedyakUcQbY0YHkEUSiiSDFUwtsgHMtj
	h3RNkxl13j+p9UGsC6M3A0rtL48iijsKhK8BguxYTxHlQE/5OIk852ENcbA9rg==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706370022; a=rsa-sha256; cv=none;
	b=EtPmrsUlIPPMxkXEi/flglfaGcI3HnlUfxGojYeDiroqrf6zG4TEdWCd0FtlF6Zycm0v2q
	YamhNqRzWOnU+1SsGU9VgN8ZtzFVP+ZTOsa7i+Rf2BKo6utmdp4TyqKfU5URFEVnHgID/L
	qwHejk8poBaXRbhUdEeNsXzJulQAGinKIHcUwCAZsHA2VQkT147iphmSEqihk6p2bwg66O
	fdVPoNwbA6cRZsU39M4zszT0YPdSuh7IAIIi5KnBs3tIAHytzmPkkixi5tfqlVjcZDe2mg
	f+h5tD7jFEEuQesoz2jbea32XgtYXgHGLC65mNkJuzkozhK4R0Ga1Rl2HYtLTQ==
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
	(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 4TMf062p84zTcM;
	Sat, 27 Jan 2024 15:40:22 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
	by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40RFeMuu062682;
	Sat, 27 Jan 2024 15:40:22 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40RFeMd4062679;
	Sat, 27 Jan 2024 15:40:22 GMT
	(envelope-from git)
Date: Sat, 27 Jan 2024 15:40:22 GMT
Message-Id: <202401271540.40RFeMd4062679@gitrepo.freebsd.org>
To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org,
        dev-commits-src-main@FreeBSD.org
From: Mike Karels <karels@FreeBSD.org>
Subject: git: 9231c42127bf - main - inet(3): clarify syntax accepted
  by inet_pton
List-Id: Commit messages for all branches of the src repository <dev-commits-src-all.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all
List-Help: <mailto:dev-commits-src-all+help@freebsd.org>
List-Post: <mailto:dev-commits-src-all@freebsd.org>
List-Subscribe: <mailto:dev-commits-src-all+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-src-all+unsubscribe@freebsd.org>
Sender: owner-dev-commits-src-all@freebsd.org
X-BeenThere: dev-commits-src-all@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: karels
X-Git-Repository: src
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: 9231c42127bf8e47588169ecc395f57cae0e15fb
Auto-Submitted: auto-generated

The branch main has been updated by karels:

URL: https://cgit.FreeBSD.org/src/commit/?id=9231c42127bf8e47588169ecc395f57cae0e15fb

commit 9231c42127bf8e47588169ecc395f57cae0e15fb
Author:     Mike Karels <karels@FreeBSD.org>
AuthorDate: 2024-01-27 15:40:07 +0000
Commit:     Mike Karels <karels@FreeBSD.org>
CommitDate: 2024-01-27 15:40:07 +0000

    inet(3): clarify syntax accepted by inet_pton
    
    The section INTERNET ADDRESSES describes the acceptance of dotted
    values with varying number of parts in multiple bases.  This applies
    to inet_aton and inet_addr, but not to inet_pton.  Clarify this
    section by listing the functions to which this applies.  Move the
    description of what inet_pton accepts into this section from STANDARDS,
    where it is easily missed.  Rename the section to clarify that it
    applies only to IPv4.  (inet_pton also works with IPv6.)
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D43537
---
 lib/libc/net/inet.3 | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3
index 5e8c1953431b..7b1a5fcc8ede 100644
--- a/lib/libc/net/inet.3
+++ b/lib/libc/net/inet.3
@@ -173,10 +173,15 @@ All Internet addresses are returned in network
 order (bytes ordered from left to right).
 All network numbers and local address parts are
 returned as machine byte order integer values.
-.Sh INTERNET ADDRESSES
-Values specified using the
+.Sh INTERNET ADDRESSES (IP VERSION 4)
+The
+.Fn inet_aton 
+and
+.Fn inet_addr
+functions accept IPv4
+values specified using the
 .Ql .\&
-notation take one
+notation in one
 of the following forms:
 .Bd -literal -offset indent
 a.b.c.d
@@ -210,6 +215,13 @@ may be decimal, octal, or hexadecimal, as specified
 in the C language (i.e., a leading 0x or 0X implies
 hexadecimal; otherwise, a leading 0 implies octal;
 otherwise, the number is interpreted as decimal).
+.Pp
+Note that
+.Fn inet_pton
+does not accept 1-, 2-, or 3-part dotted addresses; all four parts
+must be specified and are interpreted only as decimal values.
+This is a narrower input set than that accepted by
+.Fn inet_aton .
 .Sh DIAGNOSTICS
 The constant
 .Dv INADDR_NONE
@@ -256,12 +268,6 @@ and
 .Fn inet_pton
 functions conform to
 .St -xns5.2 .
-Note that
-.Fn inet_pton
-does not accept 1-, 2-, or 3-part dotted addresses; all four parts
-must be specified and are interpreted only as decimal values.
-This is a narrower input set than that accepted by
-.Fn inet_aton .
 .Sh HISTORY
 These
 functions appeared in