diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/inet_net.3 | 31 |
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 | |||
| 84 | as the function will only fill the number of bytes necessary to | 84 | as the function will only fill the number of bytes necessary to |
| 85 | encode the network number in network byte order. | 85 | encode the network number in network byte order. |
| 86 | .Pp | 86 | .Pp |
| 87 | The only value for | 87 | The only values for |
| 88 | .Fa af | 88 | .Fa af |
| 89 | currently supported is | 89 | currently supported are |
| 90 | .Dv AF_INET . | 90 | .Dv AF_INET |
| 91 | and | ||
| 92 | .Dv AF_INET6 . | ||
| 91 | .Fa size | 93 | .Fa size |
| 92 | is the size of the result buffer | 94 | is the size of the result buffer |
| 93 | .Fa dst . | 95 | .Fa dst . |
| @@ -163,6 +165,25 @@ may be decimal, octal, or hexadecimal, as specified | |||
| 163 | in the C language (i.e., a leading 0x or 0X implies | 165 | in the C language (i.e., a leading 0x or 0X implies |
| 164 | hexadecimal; otherwise, a leading 0 implies octal; | 166 | hexadecimal; otherwise, a leading 0 implies octal; |
| 165 | otherwise, the number is interpreted as decimal). | 167 | otherwise, the number is interpreted as decimal). |
| 168 | .Sh NETWORK NUMBERS (IP VERSION 6) | ||
| 169 | See | ||
| 170 | .Xr inet_pton 3 | ||
| 171 | for valid external representations of IP version 6 addresses. | ||
| 172 | A valid external representation may have | ||
| 173 | .Dq Li /bits | ||
| 174 | appended where | ||
| 175 | .Dq Li bits | ||
| 176 | is in the range | ||
| 177 | .Li 0-128 | ||
| 178 | and is used to explicitly specify the number of bits in the network address. | ||
| 179 | When | ||
| 180 | .Dq Li /bits | ||
| 181 | is not specified 128 is used. | ||
| 182 | Note that when the number of bits is specified using | ||
| 183 | .Dq Li /bits | ||
| 184 | notation, the value of the address still includes all bits supplied | ||
| 185 | in the external representation, even those bits which are the host | ||
| 186 | part 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 , |
