989d921f5d
I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
255 lines
7.4 KiB
Groff
255 lines
7.4 KiB
Groff
.\" Copyright (c) 1983, 1990, 1991, 1993
|
||
.\" The Regents of the University of California. All rights reserved.
|
||
.\"
|
||
.\" Redistribution and use in source and binary forms, with or without
|
||
.\" modification, are permitted provided that the following conditions
|
||
.\" are met:
|
||
.\" 1. Redistributions of source code must retain the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer.
|
||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer in the
|
||
.\" documentation and/or other materials provided with the distribution.
|
||
.\" 3. All advertising materials mentioning features or use of this software
|
||
.\" must display the following acknowledgement:
|
||
.\" This product includes software developed by the University of
|
||
.\" California, Berkeley and its contributors.
|
||
.\" 4. Neither the name of the University nor the names of its contributors
|
||
.\" may be used to endorse or promote products derived from this software
|
||
.\" without specific prior written permission.
|
||
.\"
|
||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
.\" SUCH DAMAGE.
|
||
.\"
|
||
.\" From: @(#)inet.3 8.1 (Berkeley) 6/4/93
|
||
.\" %FreeBSD: src/lib/libc/net/inet.3,v 1.8.2.8 2001/12/01 21:15:38 cjc Exp %
|
||
.\" $FreeBSD$
|
||
.\"
|
||
.Dd June 17, 1996
|
||
.Dt INET 3
|
||
.Os
|
||
.Sh ̾<EFBFBD><EFBFBD>
|
||
.Nm inet_aton ,
|
||
.Nm inet_addr ,
|
||
.Nm inet_network ,
|
||
.Nm inet_ntoa ,
|
||
.Nm inet_ntop ,
|
||
.Nm inet_pton ,
|
||
.Nm inet_makeaddr ,
|
||
.Nm inet_lnaof ,
|
||
.Nm inet_netof
|
||
.Nd <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͥåȥ<EFBFBD><EFBFBD>ɥ쥹<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD>
|
||
.Sh <EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD>
|
||
.Lb libc
|
||
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.In sys/types.h
|
||
.In sys/socket.h
|
||
.In netinet/in.h
|
||
.In arpa/inet.h
|
||
.Ft int
|
||
.Fn inet_aton "const char *cp" "struct in_addr *pin"
|
||
.Ft unsigned long
|
||
.Fn inet_addr "const char *cp"
|
||
.Ft unsigned long
|
||
.Fn inet_network "const char *cp"
|
||
.Ft char *
|
||
.Fn inet_ntoa "struct in_addr in"
|
||
.Ft const char *
|
||
.Fn inet_ntop "int af" "const void *src" "char *dst" "size_t size"
|
||
.Ft int
|
||
.Fn inet_pton "int af" "const char *src" "void *dst"
|
||
.Ft struct in_addr
|
||
.Fn inet_makeaddr "unsigned long net" "unsigned long lna"
|
||
.Ft unsigned long
|
||
.Fn inet_lnaof "struct in_addr in"
|
||
.Ft unsigned long
|
||
.Fn inet_netof "struct in_addr in"
|
||
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Fn inet_aton ,
|
||
.Fn inet_addr
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Fn inet_network
|
||
<EFBFBD>롼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͥå<EFBFBD>ɸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||
.Ql .\&
|
||
ɽ<EFBFBD><EFBFBD>ˡ<EFBFBD>Ǽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD>ɽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᤷ<EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||
.Pp
|
||
.Fn inet_pton
|
||
<EFBFBD>ؿ<EFBFBD><EFBFBD>ϡ<EFBFBD>ɽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD>ɥ쥹 (<28>Ĥޤ<C4A4>ʸ<EFBFBD><CAB8><EFBFBD><EF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