IPv4 Constant Enumerations#

This module contains all constant enumerations of IPv4 implementations. Available enumerations include:

IPv4_ClassificationLevel

Classification Level Encodings

IPv4_OptionClass

Option Classes

IPv4_OptionNumber

IP Option Numbers [*]

IPv4_ProtectionAuthority

Protection Authority Bit Assignments

IPv4_QSFunction

QS Functions

IPv4_RouterAlert

IPv4 Router Alert Option Values []

IPv4_ToSDelay

ToS (DS Field) Delay

IPv4_ToSECN

ToS ECN Field

IPv4_ToSPrecedence

ToS (DS Field) Precedence

IPv4_ToSReliability

ToS (DS Field) Reliability

IPv4_ToSThroughput

ToS (DS Field) Throughput

IPv4_TSFlag

TS Flag

Classification Level Encodings#

This module contains the constant enumeration for Classification Level Encodings, which is automatically generated from pcapkit.vendor.ipv4.classification_level.ClassificationLevel.

class pcapkit.const.ipv4.classification_level.ClassificationLevel(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[ClassificationLevel] Classification Level Encodings

Reserved_4 = 1#
Top_Secret = 61#
Secret = 90#
Confidential = 150#
Reserved_3 = 102#
Reserved_2 = 204#
Unclassified = 171#
Reserved_1 = 241#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

ClassificationLevel

Option Classes#

This module contains the constant enumeration for Option Classes, which is automatically generated from pcapkit.vendor.ipv4.option_class.OptionClass.

class pcapkit.const.ipv4.option_class.OptionClass(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[OptionClass] Option Classes

control = 0#
reserved_for_future_use_1 = 1#
debugging_and_measurement = 2#
reserved_for_future_use_3 = 3#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

OptionClass

IP Option Numbers#

This module contains the constant enumeration for IP Option Numbers, which is automatically generated from pcapkit.vendor.ipv4.option_number.OptionNumber.

class pcapkit.const.ipv4.option_number.OptionNumber(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[OptionNumber] IP Option Numbers

EOOL = 0#

EOOL, End of Options List [RFC 791][Jon Postel]

NOP = 1#

NOP, No Operation [RFC 791][Jon Postel]

SEC = 130#

SEC, Security [RFC 1108]

LSR = 131#

LSR, Loose Source Route [RFC 791][Jon Postel]

TS = 68#

TS, Time Stamp [RFC 791][Jon Postel]

E_SEC = 133#

E-SEC, Extended Security [RFC 1108]

CIPSO = 134#

CIPSO, Commercial Security [draft-ietf-cipso-ipsecurity-01]

RR = 7#

RR, Record Route [RFC 791][Jon Postel]

SID = 136#

SID, Stream ID [RFC 791][Jon Postel][RFC 6814]

SSR = 137#

SSR, Strict Source Route [RFC 791][Jon Postel]

ZSU = 10#

ZSU, Experimental Measurement [ZSu]

MTUP = 11#

MTUP, MTU Probe [RFC 1063][RFC 1191]

MTUR = 12#

MTUR, MTU Reply [RFC 1063][RFC 1191]

FINN = 205#

FINN, Experimental Flow Control [Greg Finn]

VISA = 142#

VISA, Experimental Access Control [Deborah Estrin][RFC 6814]

ENCODE = 15#

ENCODE, ??? [VerSteeg][RFC 6814]

IMITD = 144#

IMITD, IMI Traffic Descriptor [Lee]

EIP = 145#

EIP, Extended Internet Protocol [RFC 1385][RFC 6814]

TR = 82#

TR, Traceroute [RFC 1393][RFC 6814]

ADDEXT = 147#

ADDEXT, Address Extension [Ullmann IPv7][RFC 6814]

RTRALT = 148#

RTRALT, Router Alert [RFC 2113]

SDB = 149#

SDB, Selective Directed Broadcast [Charles Bud Graff][RFC 6814]

Unassigned_150 = 150#

Unassigned (Released 18 October 2005)

DPS = 151#

DPS, Dynamic Packet State [Andy Malis][RFC 6814]

UMP = 152#

UMP, Upstream Multicast Pkt. [Dino Farinacci][RFC 6814]

QS = 25#

QS, Quick-Start [RFC 4782]

EXP_30 = 30#

EXP, RFC3692-style Experiment [RFC 4727]

EXP_94 = 94#

EXP, RFC3692-style Experiment [RFC 4727]

EXP_158 = 158#

EXP, RFC3692-style Experiment [RFC 4727]

EXP_222 = 222#

EXP, RFC3692-style Experiment [RFC 4727]

classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

OptionNumber

Protection Authority Bit Assignments#

This module contains the constant enumeration for Protection Authority Bit Assignments, which is automatically generated from pcapkit.vendor.ipv4.protection_authority.ProtectionAuthority.

class pcapkit.const.ipv4.protection_authority.ProtectionAuthority(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[ProtectionAuthority] Protection Authority Bit Assignments

GENSER = 0#
SIOP_ESI = 1#
SCI = 2#
NSA = 3#
DOE = 4#
Unassigned_5 = 5#
Unassigned_6 = 6#
Field_Termination_Indicator = 7#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

ProtectionAuthority

QS Functions#

This module contains the constant enumeration for QS Functions, which is automatically generated from pcapkit.vendor.ipv4.qs_function.QSFunction.

class pcapkit.const.ipv4.qs_function.QSFunction(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[QSFunction] QS Functions

Quick_Start_Request = 0#
Report_of_Approved_Rate = 8#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

QSFunction

IPv4 Router Alert Option Values#

This module contains the constant enumeration for IPv4 Router Alert Option Values, which is automatically generated from pcapkit.vendor.ipv4.router_alert.RouterAlert.

class pcapkit.const.ipv4.router_alert.RouterAlert(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[RouterAlert] IPv4 Router Alert Option Values

Aggregated_Reservation_Nesting_Level_0 = 1#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_1 = 2#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_2 = 3#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_3 = 4#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_4 = 5#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_5 = 6#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_6 = 7#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_7 = 8#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_8 = 9#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_9 = 10#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_10 = 11#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_11 = 12#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_12 = 13#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_13 = 14#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_14 = 15#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_15 = 16#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_16 = 17#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_17 = 18#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_18 = 19#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_19 = 20#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_20 = 21#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_21 = 22#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_22 = 23#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_23 = 24#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_24 = 25#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_25 = 26#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_26 = 27#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_27 = 28#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_28 = 29#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_29 = 30#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_30 = 31#

Aggregated Reservation Nesting Level [RFC 3175]

Aggregated_Reservation_Nesting_Level_31 = 32#

Aggregated Reservation Nesting Level [RFC 3175]

QoS_NSLP_Aggregation_Level_0 = 33#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_1 = 34#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_2 = 35#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_3 = 36#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_4 = 37#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_5 = 38#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_6 = 39#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_7 = 40#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_8 = 41#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_9 = 42#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_10 = 43#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_11 = 44#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_12 = 45#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_13 = 46#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_14 = 47#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_15 = 48#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_16 = 49#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_17 = 50#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_18 = 51#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_19 = 52#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_20 = 53#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_21 = 54#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_22 = 55#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_23 = 56#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_24 = 57#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_25 = 58#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_26 = 59#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_27 = 60#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_28 = 61#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_29 = 62#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_30 = 63#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

QoS_NSLP_Aggregation_Level_31 = 64#

QoS NSLP Aggregation Levels 0-31 [RFC 5974]

NSIS_NATFW_NSLP = 65#

NSIS NATFW NSLP [RFC 5973]

Reserved_65535 = 65535#

Reserved [RFC 5350]

classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

RouterAlert

ToS (DS Field) Delay#

This module contains the constant enumeration for ToS (DS Field) Delay, which is automatically generated from pcapkit.vendor.ipv4.tos_del.ToSDelay.

class pcapkit.const.ipv4.tos_del.ToSDelay(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[ToSDelay] ToS (DS Field) Delay

NORMAL = 0#
LOW = 1#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

ToSDelay

ToS ECN Field#

This module contains the constant enumeration for ToS ECN Field, which is automatically generated from pcapkit.vendor.ipv4.tos_ecn.ToSECN.

class pcapkit.const.ipv4.tos_ecn.ToSECN(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[ToSECN] ToS ECN Field

Not_ECT = 0#
ECT_0b01 = 1#
ECT_0b10 = 2#
CE = 3#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

ToSECN

ToS (DS Field) Precedence#

This module contains the constant enumeration for ToS (DS Field) Precedence, which is automatically generated from pcapkit.vendor.ipv4.tos_pre.ToSPrecedence.

class pcapkit.const.ipv4.tos_pre.ToSPrecedence(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[ToSPrecedence] ToS (DS Field) Precedence

Network_Control = 7#
Internetwork_Control = 6#
CRITIC_ECP = 5#
Flash_Override = 4#
Flash = 3#
Immediate = 2#
Priority = 1#
Routine = 0#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

ToSPrecedence

ToS (DS Field) Reliability#

This module contains the constant enumeration for ToS (DS Field) Reliability, which is automatically generated from pcapkit.vendor.ipv4.tos_rel.ToSReliability.

class pcapkit.const.ipv4.tos_rel.ToSReliability(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[ToSReliability] ToS (DS Field) Reliability

NORMAL = 0#
HIGH = 1#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

ToSReliability

ToS (DS Field) Throughput#

This module contains the constant enumeration for ToS (DS Field) Throughput, which is automatically generated from pcapkit.vendor.ipv4.tos_thr.ToSThroughput.

class pcapkit.const.ipv4.tos_thr.ToSThroughput(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[ToSThroughput] ToS (DS Field) Throughput

NORMAL = 0#
HIGH = 1#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

ToSThroughput

TS Flag#

This module contains the constant enumeration for TS Flag, which is automatically generated from pcapkit.vendor.ipv4.ts_flag.TSFlag.

class pcapkit.const.ipv4.ts_flag.TSFlag(value=<no_arg>, names=None, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: IntEnum

[TSFlag] TS Flag

Timestamp_Only = 0#
IP_with_Timestamp = 1#
Prespecified_IP_with_Timestamp = 3#
classmethod _missing_(value)[source]#

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

TSFlag

Footnotes