Jump to main content

##

# IPV4_OPTION_FIELD Structure

## C

    typedef struct {
    struct {
        uint8_t optNumber : 5;
        uint8_t optClass : 2;
        uint8_t optCopied : 1;
    }
    uint8_t optLength;
    uint16_t optData[];
    } IPV4_OPTION_FIELD;

## Description

IPv4 packet option definition.

This is the structure of an IPv4 option field in the IPv4 header.

## Parameters

Parameters | Description
--- | ---
uint8_t optNumber : 5; | Specifies an option.
uint8_t optClass : 2; | Option class: 0 - control; 2 - debugging and measurement; 1, 3 - reserved.
uint8_t optCopied : 1; | Option copied to all fragments.
uint8_t optLength; | Size of the entire option.
uint16_t optData; | Option specific variable data.

## Returns

None.

## Remarks

None.