From e1a5ca24cac961bfbbfd802b52f827f3255d98cd Mon Sep 17 00:00:00 2001 From: "Crist J. Clark" Date: Thu, 29 Nov 2001 00:56:45 +0000 Subject: [PATCH] After the long explanaition of how the inet_* functions interpret Internet addresses, point out that inet_pton(3) only understands dotted quads with decimal values. MFC after: 2 days --- lib/libc/net/inet.3 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3 index 2461694f84e7..8816ae44d23c 100644 --- a/lib/libc/net/inet.3 +++ b/lib/libc/net/inet.3 @@ -203,6 +203,14 @@ 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