diff options
author | cjc <cjc@FreeBSD.org> | 2001-11-29 09:44:33 +0000 |
---|---|---|
committer | cjc <cjc@FreeBSD.org> | 2001-11-29 09:44:33 +0000 |
commit | 73fc132b6c55bf3a46d4ebffee097c8c3d5c1332 (patch) | |
tree | d52bfbcb047dedf2b300bc5cd26af255dedd1a8b | |
parent | cc289dd3938cb123b718f3936cf6529265a623ed (diff) | |
download | FreeBSD-src-73fc132b6c55bf3a46d4ebffee097c8c3d5c1332.zip FreeBSD-src-73fc132b6c55bf3a46d4ebffee097c8c3d5c1332.tar.gz |
Duh. Back out most of my previous commit. It was mostly covered in the
STANDARDS section of the page. Add one remark there about inet_pton(3)
only understanding decimal values (in contrast to inet_aton(3) and
friends who are happy with 0ac.020.25 for 172.16.0.25).
Caught by: ru
MFC after: 2 days
-rw-r--r-- | lib/libc/net/inet.3 | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3 index 8816ae4..3b51129 100644 --- a/lib/libc/net/inet.3 +++ b/lib/libc/net/inet.3 @@ -203,14 +203,6 @@ hexadecimal; otherwise, a leading 0 implies octal; otherwise, the number is interpreted as decimal). .Pp The -.Fn inet_pton -function only understands Internet addresses written as dotted quads. -Each -.Dq part -may only contain numeric characters and is always interpreted as a -decimal value. -.Pp -The .Fn inet_aton and .Fn inet_ntoa @@ -253,7 +245,7 @@ functions conform to Note that .Fn inet_pton does not accept 1-, 2-, or 3-part dotted addresses; all four parts -must be specified. +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 |