IPV4_PACKET Structure

C

typedef struct {
TCPIP_MAC_PACKET macPkt;
IPV4_ADDR srcAddress;
IPV4_ADDR destAddress;
TCPIP_NET_HANDLE netIfH;
uint8_t optionLen;
uint8_t optionOffset;
uint16_t optionMask;
} IPV4_PACKET;

Description

IPv4 packet structure definition.

This is the structure of an IPv4 packet for transmission over the network.

Parameters

ParametersDescription
macPktStandard MAC packet header safe cast to TCPIP_MAC_PACKET.
srcAddressPacket source.
destAddressPacket destination.
netIfHPacket interface.
optionLenLength of the options in the IPV4 packet; usually 0.
optionOffsetOffset of the current option; when multiple options are supported.
optionMaskInternal options to be embedded in the packet.

Returns

None.

Remarks

None.