Deleted Added
full compact
inet_net.3 (82644) inet_net.3 (108087)
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.\"

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

29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35.\" POSSIBILITY OF SUCH DAMAGE.
36.\"
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.\"

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

29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35.\" POSSIBILITY OF SUCH DAMAGE.
36.\"
37.\" $FreeBSD: head/lib/libc/net/inet_net.3 82644 2001-08-31 10:54:44Z ru $
37.\" $FreeBSD: head/lib/libc/net/inet_net.3 108087 2002-12-19 09:40:28Z ru $
38.\"
39.Dd June 18, 1997
40.Dt INET_NET 3
41.Os
42.Sh NAME
43.Nm inet_net_ntop ,
44.Nm inet_net_pton
45.Nd Internet network number manipulation routines

--- 10 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).
38.\"
39.Dd June 18, 1997
40.Dt INET_NET 3
41.Os
42.Sh NAME
43.Nm inet_net_ntop ,
44.Nm inet_net_pton
45.Nd Internet network number manipulation routines

--- 10 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 ---