- scope separater is percentage, not atmark.

- typo in example.  s/err1/errx/.
- some wording improvements.
sync with kame.
This commit is contained in:
itojun 2001-01-26 13:30:38 +00:00
parent 37606c1593
commit 34cabf50d6
1 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
.\" $NetBSD: getaddrinfo.3,v 1.17 2000/11/16 07:28:15 lukem Exp $
.\" $KAME: getaddrinfo.3,v 1.22 2000/08/09 21:16:17 itojun Exp $
.\" $NetBSD: getaddrinfo.3,v 1.18 2001/01/26 13:30:38 itojun Exp $
.\" $KAME: getaddrinfo.3,v 1.27 2001/01/26 13:27:56 itojun Exp $
.\"
.\" Copyright (c) 1983, 1987, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -367,10 +367,11 @@ If the argument is not one of the
values, the function still returns a pointer to a string whose contents
indicate an unknown error.
.\"
.Sh EXTENSION
.Ss Extension for scoped IPv6 address
The implementation allows experimental numeric IPv6 address notation with
scope identifier.
By appending atmark and scope identifier to addresses, you can fill
By appending the percent character and scope identifier to addresses,
you can fill
.Li sin6_scope_id
field for addresses.
This would make management of scoped address easier,
@ -425,7 +426,7 @@ hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo("www.kame.net", "http", &hints, &res0);
if (error) {
err1(1, "%s", gai_strerror(error));
errx(1, "%s", gai_strerror(error));
/*NOTREACHED*/
}
s = -1;
@ -469,7 +470,7 @@ hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE;
error = getaddrinfo(NULL, "http", &hints, &res0);
if (error) {
err1(1, "%s", gai_strerror(error));
errx(1, "%s", gai_strerror(error));
/*NOTREACHED*/
}
nsock = 0;
@ -595,7 +596,7 @@ The implementation first appeared in WIDE Hydrangea IPv6 protocol stack kit.
.Sh STANDARDS
The
.Fn getaddrinfo
function is defined IEEE POSIX 1003.1g draft specification,
function is defined in IEEE POSIX 1003.1g draft specification,
and documented in
.Dq Basic Socket Interface Extensions for IPv6
.Pq RFC2553 .