![Texas TMS320C6000 Programmer'S Reference Manual Download Page 143](http://html.mh-extra.com/html/texas/tms320c6000/tms320c6000_programmers-reference-manual_1093844143.webp)
Packet (Pkt) Object
A-9
Internal Stack Functions
Get Packet Flags
PktGetFlags
Syntax
uint PktGetFlags( HANDLE hPkt );
Return Value
Packet flags
Description
This function is called to get the status flags in the packet object. Flags are
used to mark whether certain network headers are either included or not in-
cluded in the valid data of the packet. For more information, see the synopsis
of this section.
Attach a Packet Fragment Handle to a Packet
PktGetFrag
Syntax
HANDLE PktGetFrag( HANDLE hPkt );
Return Value
Frag handle or NULL on error.
Description
This function is called to get the packet fragment (FRAG) object handle associ-
ated with the packet. The FRAG is the object which abstracts the physical
memory buffer containing the packet data. For more information, see the syn-
opsis of this section and that of the following section on the FRAG object.
Get the Receive (Ingress) Interface Handle
PktGetIFRx
Syntax
HANDLE PktGetIFRx( HANDLE hPkt );
Return Value
Handle to Rx device or NULL for local.
Description
This function is called to get a handle to the interface which originally received
the packet. The receive handle is set by the Ether object to mark which Ether-
net device originally received the packet. For packets that were generated lo-
cally in the stack, this value is NULL.
Get the Transmit (Egress) Interface Handle
PktGetIFTx
Syntax
HANDLE PktGetIFTx( HANDLE hPkt );
Return Value
Handle to Rx device or NULL for local.
Description
This function is called to get a handle to the interface to which this packet is
destined to be sent. In order for a packet to be sent via Ethernet, both the trans-
mit interface and the destination link-layer address (LLA) must be known. As
an alternative, the link-level info (LLI) module can derive these values from a
route handle.