Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81875524
D43537.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43537.diff
View Options
diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3
--- a/lib/libc/net/inet.3
+++ b/lib/libc/net/inet.3
@@ -173,10 +173,15 @@
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 @@
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 @@
.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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 1:27 AM (20 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9048008
Default Alt Text
D43537.diff (1 KB)
Attached To
Mode
D43537: inet(3): clarify syntax accepted by inet_pton
Attached
Detach File
Event Timeline
Log In to Comment