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                           [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to