Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net_inject_t(9s) [opensolaris man page]

net_inject_t(9S)					    Data Structures for Drivers 					  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 only required to be initialized if NI_DIRECT_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(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
net_inject(9F), netinfo(9F), attributes(5) SunOS 5.11 1 May 2008 net_inject_t(9S)

Check Out this Related Man Page

net_inject_alloc(9F)					   Kernel Functions for Drivers 				      net_inject_alloc(9F)

NAME
net_inject_alloc - allocate a net_inject_t structure SYNOPSIS
#include <sys/neti.h> net_inject_t *net_inject_alloc(const int version); INTERFACE LEVEL
Solaris DDI specific (Solaris DDI). PARAMETERS
version must always be the symbol NETI_VERSION. DESCRIPTION
The net_inject_alloc() function allocates a net_inject_t structure, returning a pointer for the caller to use. RETURN VALUES
Upon success, net_inject_alloc() returns a pointer to the allocated net_inject_t structure. On failure, hook_alloc() returns a NULL pointer. CONTEXT
The net_inject_alloc() function may be called from user, kernel, or interrupt context. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
net_inject_free(9F), net_inject_t(9S) SunOS 5.11 1 May 2008 net_inject_alloc(9F)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Replacement for netinfo

We are getting ready to migrate away from our netinfo server with is old Open Step. We were thinking of starting to use LDAP for all account creations, passwords... Does anyone have any pros or cons against this or what you are using? Thanks for the help. (0 Replies)
Discussion started by: rickyt00
0 Replies

2. UNIX for Advanced & Expert Users

Need help with configuring large packet size on Solaris 7 / e6500

We're running Solaris 7 on FDDI n/w on an E6500 host and wish to use MTU (packet size) > 1500, more like 3072 bytes to begin with and possibly up to 4096 bytes. Linux has /etc/network/interfaces. Does ANYONE remember the equivalent in Unix? When I do ifconfig eth0 mtu 4000, I get the error... (0 Replies)
Discussion started by: sharique
0 Replies

3. Ubuntu

iptable forward packet

Hi, I have the doubt which involved following configuration. comp1<--->main<--->comp2 Comp1 sends icmp packet to main. Main takes that packet and changes destination address to comp2 and source address to it own. I can capture the packet send from comp1 to main using netfilter. I can see the... (0 Replies)
Discussion started by: arsipk
0 Replies

4. Shell Programming and Scripting

Solaris ping report failed packet script

Hello, on Solaris ping command does not report failed packet as in i.e. Windows (Connection timeout) Instead it reports the sequence of the sent packet: 64 bytes from 10.80.4.120: icmp_seq=11. time=36.0 ms 64 bytes from 10.80.4.120: icmp_seq=12. time=35.9 ms 64 bytes from 10.80.4.120:... (6 Replies)
Discussion started by: drbiloukos
6 Replies

Featured Tech Videos