From 2d69bc9b8e2cd98d2ec2453c822b32faab8e7c86 Mon Sep 17 00:00:00 2001 From: "Crist J. Clark" Date: Thu, 29 Nov 2001 09:44:33 +0000 Subject: [PATCH] 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 --- lib/libc/net/inet.3 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3 index 8816ae44d23..3b51129bdf2 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