Go to main content

man pages section 9: DDI and DKI Properties and Data Structures

Exit Print View

Updated: Thursday, June 13, 2019
 
 

net_inject_t(9S)

Name

net_inject_t - structure for describing how to transmit a packet

Synopsis

#include <sys/neti.h>

Interface Level

Solaris DDI specific (Solaris DDI).

Description

The net_inject_t data structure passes information in to net_inject about how to transmit a packet. 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 the mblk_t data structure that makes up this packet.

ni_addr

This field is required to be initialized if NI_DIRECT_OUT or NI_QUEUE_PBR_OUT is being used to transmit the packet. The sockaddr_storage 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(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed

See Also

attributes(7), net_inject(9F), netinfo(9F)