summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgilles <>2012-06-24 18:06:42 +0000
committergilles <>2012-06-24 18:06:42 +0000
commite4f72d62c2695455be7c3b29622722dc4b345426 (patch)
tree8dc31dc14beaccf1b98d311e4f3f89e5dceacf1b /src
parent6e70d18fcf5e7b0cad16bf63732fbb9017ea068d (diff)
downloadopenbsd-e4f72d62c2695455be7c3b29622722dc4b345426.tar.gz
openbsd-e4f72d62c2695455be7c3b29622722dc4b345426.tar.bz2
openbsd-e4f72d62c2695455be7c3b29622722dc4b345426.zip
- document newly imported AF_INET6 support to net_inet_{pton,ntop}
diff from Florian Obser, ok jmc@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/net/inet_net.331
1 files changed, 26 insertions, 5 deletions
diff --git a/src/lib/libc/net/inet_net.3 b/src/lib/libc/net/inet_net.3
index 648d82c780..11cc1d67c6 100644
--- a/src/lib/libc/net/inet_net.3
+++ b/src/lib/libc/net/inet_net.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet_net.3,v 1.14 2008/06/26 05:42:05 ray Exp $ 1.\" $OpenBSD: inet_net.3,v 1.15 2012/06/24 18:06:42 gilles Exp $
2.\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $ 2.\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $
3.\" 3.\"
4.\" Copyright (c) 1997 The NetBSD Foundation, Inc. 4.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29.\" POSSIBILITY OF SUCH DAMAGE. 29.\" POSSIBILITY OF SUCH DAMAGE.
30.\" 30.\"
31.Dd $Mdocdate: June 26 2008 $ 31.Dd $Mdocdate: June 24 2012 $
32.Dt INET_NET 3 32.Dt INET_NET 3
33.Os 33.Os
34.Sh NAME 34.Sh NAME
@@ -84,10 +84,12 @@ field should be zeroed before calling
84as the function will only fill the number of bytes necessary to 84as the function will only fill the number of bytes necessary to
85encode the network number in network byte order. 85encode the network number in network byte order.
86.Pp 86.Pp
87The only value for 87The only values for
88.Fa af 88.Fa af
89currently supported is 89currently supported are
90.Dv AF_INET . 90.Dv AF_INET
91and
92.Dv AF_INET6 .
91.Fa size 93.Fa size
92is the size of the result buffer 94is the size of the result buffer
93.Fa dst . 95.Fa dst .
@@ -163,6 +165,25 @@ may be decimal, octal, or hexadecimal, as specified
163in the C language (i.e., a leading 0x or 0X implies 165in the C language (i.e., a leading 0x or 0X implies
164hexadecimal; otherwise, a leading 0 implies octal; 166hexadecimal; otherwise, a leading 0 implies octal;
165otherwise, the number is interpreted as decimal). 167otherwise, the number is interpreted as decimal).
168.Sh NETWORK NUMBERS (IP VERSION 6)
169See
170.Xr inet_pton 3
171for valid external representations of IP version 6 addresses.
172A valid external representation may have
173.Dq Li /bits
174appended where
175.Dq Li bits
176is in the range
177.Li 0-128
178and is used to explicitly specify the number of bits in the network address.
179When
180.Dq Li /bits
181is not specified 128 is used.
182Note that when the number of bits is specified using
183.Dq Li /bits
184notation, the value of the address still includes all bits supplied
185in the external representation, even those bits which are the host
186part of an Internet address.
166.Sh SEE ALSO 187.Sh SEE ALSO
167.Xr byteorder 3 , 188.Xr byteorder 3 ,
168.Xr inet 3 , 189.Xr inet 3 ,