summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/inet.3
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2007-03-21 05:46:18 +0000
committermlaier <mlaier@FreeBSD.org>2007-03-21 05:46:18 +0000
commit4cb223184a79d34c2f19e794fe126be7560b97d9 (patch)
tree58bd79027dee50549347ee459e16e0d2ae12bbd0 /lib/libc/net/inet.3
parentb3b2407aa0a0e34841c12870ec383191f66c1236 (diff)
downloadFreeBSD-src-4cb223184a79d34c2f19e794fe126be7560b97d9.zip
FreeBSD-src-4cb223184a79d34c2f19e794fe126be7560b97d9.tar.gz
Let people in on the magic of INET[6]_ADDRSTRLEN which comes quite handy in
combination with inet_ntop(). Reviewed by: trhodes "works for me"
Diffstat (limited to 'lib/libc/net/inet.3')
-rw-r--r--lib/libc/net/inet.37
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3
index d1975a8..d721d9e 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 February 28, 2007
+.Dd March 21, 2007
.Dt INET 3
.Os
.Sh NAME
@@ -126,6 +126,11 @@ The
.Fa size
argument specifies the size, in bytes, of the buffer
.Fa *dst .
+.Dv INET_ADDRSTRLEN
+and
+.Dv INET6_ADDRSTRLEN
+define the maximum size required to convert an address of the respective
+type.
It returns NULL if a system error occurs (in which case,
.Va errno
will have been set), or it returns a pointer to the destination string.
OpenPOWER on IntegriCloud