inet_net.3 (81a3cb97a5e39ab53062df9bd762ba6e0f9156cb) inet_net.3 (2efeeba554cbd7bdee9cfe17641c8bd335c7972f)
1.\" $NetBSD: inet_net.3,v 1.4 1999/03/22 19:44:52 garbled Exp $
2.\"
3.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Luke Mewburn.
8.\"

--- 47 unchanged lines hidden (view full) ---

56.Fn inet_net_pton "int af" "const char *src" "void *dst" "size_t size"
57.Sh DESCRIPTION
58The
59.Fn inet_net_ntop
60function converts an Internet network number from network format (usually a
61.Vt "struct in_addr"
62or some other binary form, in network byte order) to CIDR presentation format
63(suitable for external display purposes).
1.\" $NetBSD: inet_net.3,v 1.4 1999/03/22 19:44:52 garbled Exp $
2.\"
3.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Luke Mewburn.
8.\"

--- 47 unchanged lines hidden (view full) ---

56.Fn inet_net_pton "int af" "const char *src" "void *dst" "size_t size"
57.Sh DESCRIPTION
58The
59.Fn inet_net_ntop
60function converts an Internet network number from network format (usually a
61.Vt "struct in_addr"
62or some other binary form, in network byte order) to CIDR presentation format
63(suitable for external display purposes).
64The
64.Fa bits
65.Fa bits
66argument
65is the number of bits in
66.Fa src
67that are the network number.
68It returns
69.Dv NULL
70if a system error occurs (in which case,
71.Va errno
72will have been set), or it returns a pointer to the destination string.

--- 12 unchanged lines hidden (view full) ---

85It will be set to
86.Er ENOENT
87if the Internet network number was not valid).
88.Pp
89The only value for
90.Fa af
91currently supported is
92.Dv AF_INET .
67is the number of bits in
68.Fa src
69that are the network number.
70It returns
71.Dv NULL
72if a system error occurs (in which case,
73.Va errno
74will have been set), or it returns a pointer to the destination string.

--- 12 unchanged lines hidden (view full) ---

87It will be set to
88.Er ENOENT
89if the Internet network number was not valid).
90.Pp
91The only value for
92.Fa af
93currently supported is
94.Dv AF_INET .
95The
93.Fa size
96.Fa size
97argument
94is the size of the result buffer
95.Fa dst .
96.Pp
97.Sh NETWORK NUMBERS (IP VERSION 4)
98Internet network numbers may be specified in one of the following forms:
99.Bd -literal -offset indent
100a.b.c.d/bits
101a.b.c.d

--- 56 unchanged lines hidden ---
98is the size of the result buffer
99.Fa dst .
100.Pp
101.Sh NETWORK NUMBERS (IP VERSION 4)
102Internet network numbers may be specified in one of the following forms:
103.Bd -literal -offset indent
104a.b.c.d/bits
105a.b.c.d

--- 56 unchanged lines hidden ---