Jump to main content

##

# 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

Parameters | Description
--- | ---
macPkt | Standard MAC packet header safe cast to TCPIP_MAC_PACKET.
srcAddress | Packet source.
destAddress | Packet destination.
netIfH | Packet interface.
optionLen | Length of the options in the IPV4 packet; usually 0.
optionOffset | Offset of the current option; when multiple options are supported.
optionMask | Internal options to be embedded in the packet.

## Returns

None.

## Remarks

None.