Packet (Pkt) Object
A-12
Attach a Packet Fragment Handle to a Packet
PktSetFrag
Syntax
void PktSetFrag( HANDLE hPkt, HANDLE hFrag );
Return Value
nothing
Description
This function is called to attach a packet fragment (FRAG) handle to a packet.
The FRAG is the object which abstracts the physical memory buffer containing
the packet data. For more information, see the synopsis of this section and that
of the following section on the FRAG object.
Set Receive (Ingress) Interface Handle
PktSetIFRx
Syntax
void PktSetIFRx( HANDLE hPkt, HANDLE hIF );
Return Value
nothing
Description
This function is called to set the ingress or receive interface handle for the
packet. This function is typically called by the Ether object to mark which Ether-
net device originally received the packet. For packets that are generated local-
ly, this value is left NULL.
Set Transmit (Egress) Interface Handle
PktSetIFTx
Syntax
void PktSetIFTx( HANDLE hPkt, HANDLE hIF );
Return Value
nothing
Description
This function is called to set the egress or transmit interface handle for the
packet. In order for a packet to be sent via Ethernet, both the transmit 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.
Set Destination Link Level Address Handle
PktSetLLADst
Syntax
void PktSetLLADst( HANDLE hPkt, HANDLE hLLADst );
Return Value
nothing
Description
This function is called to set a link-level destination address for the packet. The
link-level address is abstracted into an object of type LLA, which is discussed
later in this document. To send a packet to an Ethernet device, both the des-
tination LLA and transmission interface handle must be set.