2 .\" Copyright (C) 2008, Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH NET_ZONEIDTONETID 9F "May 1, 2008"
8 net_zoneidtonetid \- map a zoneid_t structure identifier to a netid_t structure
14 \fBnetid_t\fR \fBnet_zoneidtonetid\fR(\fBconst\fR \fBzoneid_t\fR \fIzone\fR);
19 Solaris DDI specific (Solaris DDI).
26 valid \fBzoneid_t\fR structure that refers to a running zone.
31 The \fBnet_zoneidtonetid()\fR function maps the given \fBzoneid_t\fR structure
32 (used to represent a zone that is currently running) into a \fBnetid_t\fR
33 structure that is associated with the \fBIP\fR instance supporting network
34 functions for that zone.
37 The \fBnet_zoneidtonetid()\fR function returns -1 if no mapping took place.
38 Otherwise, it returns the \fBnetid_t\fR structure currently used by the
39 \fBzoneid_t\fR structure. For zones that are using a shared \fBIP\fR instance,
40 the \fBnetid_t\fR structure for the instance owned by the global zone is
44 The \fBnet_zoneidtonetid()\fR function may be called from user, kernel, or
48 See \fBattributes\fR(5) for descriptions of the following attributes:
56 ATTRIBUTE TYPE ATTRIBUTE VALUE
58 Interface Stability Committed
63 \fBnet_netidtozonid\fR(9F), \fBattributes\fR(5)