summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/net/inet_ntop.314
1 files changed, 11 insertions, 3 deletions
diff --git a/src/lib/libc/net/inet_ntop.3 b/src/lib/libc/net/inet_ntop.3
index a5bd5076fe..7c88440ff3 100644
--- a/src/lib/libc/net/inet_ntop.3
+++ b/src/lib/libc/net/inet_ntop.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet_ntop.3,v 1.1 2014/04/19 11:18:01 guenther Exp $ 1.\" $OpenBSD: inet_ntop.3,v 1.2 2014/05/09 06:38:27 guenther Exp $
2.\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $ 2.\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1990, 1991, 1993 4.\" Copyright (c) 1983, 1990, 1991, 1993
@@ -30,7 +30,7 @@
30.\" 30.\"
31.\" @(#)inet.3 8.1 (Berkeley) 6/4/93 31.\" @(#)inet.3 8.1 (Berkeley) 6/4/93
32.\" 32.\"
33.Dd $Mdocdate: April 19 2014 $ 33.Dd $Mdocdate: May 9 2014 $
34.Dt INET_NTOP 3 34.Dt INET_NTOP 3
35.Os 35.Os
36.Sh NAME 36.Sh NAME
@@ -78,7 +78,15 @@ Values must be specified using the standard dot notation:
78a.b.c.d 78a.b.c.d
79.Ed 79.Ed
80.Pp 80.Pp
81All four parts must be decimal numbers between 0 and 255, inclusive. 81All four parts must be decimal numbers between 0 and 255, inclusive,
82and are assigned, from left to right,
83to the four bytes of an Internet address.
84Note that when an Internet address is viewed as a 32-bit integer
85quantity on a system that uses little-endian byte order
86(such as the Intel 386, 486 and Pentium processors)
87the bytes referred to above appear as
88.Dq Li d.c.b.a .
89That is, little-endian bytes are ordered from right to left.
82.Sh INTERNET ADDRESSES (IP VERSION 6) 90.Sh INTERNET ADDRESSES (IP VERSION 6)
83In order to support scoped IPv6 addresses, 91In order to support scoped IPv6 addresses,
84.Xr getaddrinfo 3 92.Xr getaddrinfo 3