Kernel functions net_inject_t(9s) NAME net_inject_t - structure for describing how to transmit a packet SYNOPSIS #include INTERFACE LEVEL Solaris DDI specific (Solaris DDI) DESCRIPTION The net_inject_t data structure is used to pass information in to net_inject about how to transmit a packet. In the context of this document, transmit includes sending the packet up into the system as well as out of it. STRUCTURE MEMBERS mblk_t *ni_packet; /* start of the packet */ struct sockaddr_storage ni_addr; /* address of next hop */ phy_if_t ni_physical; /* network interface to use */ ni_packet pointer to the first mblk_t that makes up this packet ni_addr This field is only required to be initialised if NI_DIRECT_OUT is being used to transmit the packet. The ss_family field must be set to indicate whether the destination address contained in the structure is IPv4 (cast ni_addr to struct sockaddr_in) or IPv6 (cast ni_addr to struct sockaddr_in6.) ni_physical the physical interface where the packet will be injected ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | |_____________________________|_____________________________| SEE ALSO netinfo(9f), net_inject(9f) SunOS 5.10 Last change: DD Month 2007 1