1net_inject_t(9S) Data Structures for Drivers net_inject_t(9S)
2
3
4
6 net_inject_t - structure for describing how to transmit a packet
7
9 #include <sys/neti.h>
10
11
13 Solaris DDI specific (Solaris DDI).
14
16 The net_inject_t data structure passes information in to net_inject
17 about how to transmit a packet. Transmit includes sending the packet up
18 into the system as well as out of it.
19
21 mblk_t *ni_packet; /* start of the packet */
22 struct sockaddr_storage ni_addr; /* address of next hop */
23 phy_if_t ni_physical; /* network interface to use */
24
25
26 ni_packet Pointer to the first the mblk_t data structure that
27 makes up this packet.
28
29
30 ni_addr This field is only required to be initialized if
31 NI_DIRECT_OUT is being used to transmit the packet. The
32 sockaddr_storage field must be set to indicate whether
33 the destination address contained in the structure is
34 IPv4 (cast ni_addr to struct sockaddr_in) or IPv6 (cast
35 ni_addr to struct sockaddr_in6).
36
37
38 ni_physical The physical interface where the packet will be
39 injected.
40
41
43 See attributes(5) for descriptions of the following attributes:
44
45
46
47
48 ┌─────────────────────────────┬─────────────────────────────┐
49 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
50 ├─────────────────────────────┼─────────────────────────────┤
51 │Interface Stability │Committed │
52 └─────────────────────────────┴─────────────────────────────┘
53
55 net_inject(9F), netinfo(9F), attributes(5)
56
57
58
59SunOS 5.11 1 May 2008 net_inject_t(9S)