summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorCody Peter Mello <cody.mello@joyent.com>2015-10-04 00:22:11 +0000
committerRobert Mustacchi <rm@joyent.com>2015-10-09 14:56:03 -0700
commit89fdfac39633dc6769133c82b68b1ed74c2bc54b (patch)
tree1a2deabaa2ab38290f8931d178ccc1e631a6572c /usr/src
parent02afa1e50cc61e08906d115412976da2959113d4 (diff)
downloadillumos-gate-89fdfac39633dc6769133c82b68b1ed74c2bc54b.tar.gz
6312 getaddrinfo(3SOCKET) could better explain how to access a zone-id
Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/man/man3socket/getaddrinfo.3socket8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/src/man/man3socket/getaddrinfo.3socket b/usr/src/man/man3socket/getaddrinfo.3socket
index 1ab1f78d61..490717053a 100644
--- a/usr/src/man/man3socket/getaddrinfo.3socket
+++ b/usr/src/man/man3socket/getaddrinfo.3socket
@@ -3,7 +3,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
.\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
.\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH GETADDRINFO 3SOCKET "May 22, 2014"
+.TH GETADDRINFO 3SOCKET "Oct 3, 2015"
.SH NAME
getaddrinfo, getnameinfo, freeaddrinfo, gai_strerror \- translate between node
name and address
@@ -63,7 +63,11 @@ string. The \fInodename\fR can also be an IPv6 zone-id in the form:
The address is the literal IPv6 link-local address or host name of the
destination. The zone-id is the interface ID of the IPv6 link used to send the
packet. The zone-id can either be a numeric value, indicating a literal zone
-value, or an interface name such as \fBhme0\fR.
+value, or an interface name such as \fBhme0\fR. If the zone-id is an interface
+name, the interface's index will be stored in the \fIsin6_scope_id\fR field of
+the \fBstruct sockaddr_in6\fR. If the interface does not exist, the error
+\fBEAI_NONAME\fR will be returned. If the zone-id is a numeric value, it will
+be placed in \fIsin6_scope_id\fR.
.sp
.LP
A non-null \fIservname\fR string can be either a service name or a decimal port