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_INJECT_T 9S "May 1, 2008"
8 net_inject_t \- structure for describing how to transmit a packet
18 Solaris DDI specific (Solaris DDI).
22 The \fBnet_inject_t\fR data structure passes information in to \fBnet_inject\fR
23 about how to transmit a packet. Transmit includes sending the packet up into
24 the system as well as out of it.
29 mblk_t *ni_packet; /* start of the packet */
30 struct sockaddr_storage ni_addr; /* address of next hop */
31 phy_if_t ni_physical; /* network interface to use */
41 Pointer to the first the \fBmblk_t\fR data structure that makes up this packet.
50 This field is only required to be initialized if \fBNI_DIRECT_OUT\fR is being
51 used to transmit the packet. The \fBsockaddr_storage\fR field must be set to
52 indicate whether the destination address contained in the structure is
53 \fBIPv4\fR (cast \fIni_addr\fR to struct \fIsockaddr_in\fR) or \fBIPv6\fR (cast
54 \fIni_addr\fR to struct \fIsockaddr_in6\fR).
60 \fB\fBni_physical\fR\fR
63 The physical interface where the packet will be injected.
69 See \fBattributes\fR(5) for descriptions of the following attributes:
77 ATTRIBUTE TYPE ATTRIBUTE VALUE
79 Interface Stability Committed
85 \fBnet_inject\fR(9F), \fBnetinfo\fR(9F), \fBattributes\fR(5)