summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/inet.3
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2007-02-28 21:18:38 +0000
committerbms <bms@FreeBSD.org>2007-02-28 21:18:38 +0000
commit0738a9d791c7cf11ec35c5f1b495c0530c978447 (patch)
tree5795b2406f62ac8534a87ecbbb9b833c90045556 /lib/libc/net/inet.3
parent2010e1d527af4d5a25b9e8dd38e95b0b3d1a214c (diff)
downloadFreeBSD-src-0738a9d791c7cf11ec35c5f1b495c0530c978447.zip
FreeBSD-src-0738a9d791c7cf11ec35c5f1b495c0530c978447.tar.gz
Nuke ascii2addr() and addr2ascii(). They have no consumers anywhere
in FreeBSD, and originated from INRIA IPv6. Stub out netstat reference to addr2ascii() I mistakenly introduced. Update misleading man page sections. Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394 bits which don't map directly to our code. Obtained from: NetBSD (getnameinfo.c) Discussed on: current (March 2006)
Diffstat (limited to 'lib/libc/net/inet.3')
-rw-r--r--lib/libc/net/inet.318
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3
index 7470433..d1975a8 100644
--- a/lib/libc/net/inet.3
+++ b/lib/libc/net/inet.3
@@ -28,7 +28,7 @@
.\" From: @(#)inet.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 14, 2004
+.Dd February 28, 2007
.Dt INET 3
.Os
.Sh NAME
@@ -212,19 +212,6 @@ may be decimal, octal, or hexadecimal, as specified
in the C language (i.e., a leading 0x or 0X implies
hexadecimal; otherwise, a leading 0 implies octal;
otherwise, the number is interpreted as decimal).
-.Pp
-The
-.Fn inet_aton
-and
-.Fn inet_ntoa
-functions are semi-deprecated in favor of the
-.Xr addr2ascii 3
-family.
-However, since those functions are not yet widely implemented,
-portable programs cannot rely on their presence and will continue
-to use the
-.Xr inet 3
-functions for some time.
.Sh DIAGNOSTICS
The constant
.Dv INADDR_NONE
@@ -250,9 +237,10 @@ or
family address.
.El
.Sh SEE ALSO
-.Xr addr2ascii 3 ,
.Xr byteorder 3 ,
+.Xr getaddrinfo 3 ,
.Xr gethostbyname 3 ,
+.Xr getnameinfo 3 ,
.Xr getnetent 3 ,
.Xr inet_net 3 ,
.Xr hosts 5 ,
OpenPOWER on IntegriCloud