From 02023242ea2cfc56f4ad6348b874ffcf5faca6ed Mon Sep 17 00:00:00 2001 From: Max Laier Date: Wed, 21 Mar 2007 05:46:18 +0000 Subject: [PATCH] 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" --- lib/libc/net/inet.3 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3 index d1975a88faf6..d721d9efeb95 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.