IIPOptions

Summary

Represents a collection of IPv4 header options.

Methods
Properties

Structure

class IIPOptions
addOptions(type: uint8)

Creates an option object and adds it to the list of options given its type.

Parameters

type (uint8) – Options type.

addOptions(type: uint8, length: uint8 or None, data: Array[uint8])

Creates an option object and adds it to the list of options given its type, length and data.

Parameters
  • type (uint8) – Option's type.

  • length (uint8 or None) – Option's length.

  • data (Array[uint8]) – Options, data.

List_options

A list of the individual options.

Type

List[IIPOption]

Totallength

The total length of the options.

Type

uint16