Date: Tue, 27 Nov 2001 12:33:01 -0800 From: "Crist J. Clark" <cristjc@earthlink.net> To: freebsd-net@freebsd.org Subject: inet_pton(3) Does Not Replace inet_aton(3) Message-ID: <20011127123301.B3788@gohan.cjclark.org>
next in thread | raw e-mail | index | archive | help
I am not at all sure whether this is a bug or feature. I was just surprised by the results. If it is a feature, the documentation is misleading. The issue is that inet_aton(3) will correctly understand, "127.1" To be the IP address, 127.0.0.1 Where inet_pton(3) will fail (return a 1). That is, inet_pton(3) only understands dotted quads. The comments in src/lib/libc/net/inet_pton.c clearly show this is the intended behavior. But is that what we want? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011127123301.B3788>