IPv4 Constant Enumerations

Classification Level Encodings

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

Bases: aenum.IntEnum

[ClassificationLevel] Classification Level Encodings

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

Confidential = 150
Reserved_1 = 241
Reserved_2 = 204
Reserved_3 = 102
Reserved_4 = 1
Secret = 90
Top_Secret = 61
Unclassified = 171

Option Classes

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

Bases: aenum.IntEnum

[OptionClass] Option Classes

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

control = 0
debugging_and_measurement = 2
reserved_for_future_use_1 = 1
reserved_for_future_use_3 = 3

IP Option Numbers *

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

Bases: aenum.IntEnum

[OptionNumber] IP Option Numbers

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

ADDEXT = 147

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

CIPSO = 134

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

DPS = 151

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

EIP = 145

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

ENCODE = 15

ENCODE [VerSteeg][RFC 6814]

EOOL = 0

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

EXP_158 = 158

EXP - RFC3692-style Experiment [RFC 4727]

EXP_222 = 222

EXP - RFC3692-style Experiment [RFC 4727]

EXP_30 = 30

EXP - RFC3692-style Experiment [RFC 4727]

EXP_94 = 94

EXP - RFC3692-style Experiment [RFC 4727]

E_SEC = 133

E-SEC - Extended Security [RFC 1108]

FINN = 205

FINN - Experimental Flow Control [Greg Finn]

IMITD = 144

IMITD - IMI Traffic Descriptor [Lee]

LSR = 131

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

MTUP = 11

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

MTUR = 12

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

NOP = 1

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

QS = 25

QS - Quick-Start [RFC 4782]

RR = 7

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

RTRALT = 148

RTRALT - Router Alert [RFC 2113]

SDB = 149

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

SEC = 130

SEC - Security [RFC 1108]

SID = 136

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

SSR = 137

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

TR = 82

TR - Traceroute [RFC 1393][RFC 6814]

TS = 68

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

UMP = 152

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

Unassigned_150 = 150

Unassigned (Released 18 October 2005)

VISA = 142

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

ZSU = 10

ZSU - Experimental Measurement [ZSu]

Protection Authority Bit Assignments

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

Bases: aenum.IntEnum

[ProtectionAuthority] Protection Authority Bit Assignments

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

DOE = 4
Field_Termination_Indicator = 7
GENSER = 0
NSA = 3
SCI = 2
SIOP_ESI = 1
Unassigned_5 = 5
Unassigned_6 = 6

QS Functions

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

Bases: aenum.IntEnum

[QSFunction] QS Functions

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

Quick_Start_Request = 0
Report_of_Approved_Rate = 8

IPv4 Router Alert Option Values

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

Bases: aenum.IntEnum

[RouterAlert] IPv4 Router Alert Option Values

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

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_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_2 = 3

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_3 = 4

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]

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]

NSIS_NATFW_NSLP = 65

NSIS NATFW NSLP [RFC 5973]

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_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_2 = 35

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_3 = 36

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]

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]

Reserved = 65535

Reserved [RFC 5350]

ToS (DS Field) Delay

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

Bases: aenum.IntEnum

[ToSDelay] ToS (DS Field) Delay

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

LOW = 1
NORMAL = 0

ToS ECN Field

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

Bases: aenum.IntEnum

[ToSECN] ToS ECN Field

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

CE = 3
ECT_0b01 = 1
ECT_0b10 = 2
Not_ECT = 0

ToS (DS Field) Precedence

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

Bases: aenum.IntEnum

[ToSPrecedence] ToS (DS Field) Precedence

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

CRITIC_ECP = 5
Flash = 3
Flash_Override = 4
Immediate = 2
Internetwork_Control = 6
Network_Control = 7
Priority = 1
Routine = 0

ToS (DS Field) Reliability

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

Bases: aenum.IntEnum

[ToSReliability] ToS (DS Field) Reliability

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

HIGH = 1
NORMAL = 0

ToS (DS Field) Throughput

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

Bases: aenum.IntEnum

[ToSThroughput] ToS (DS Field) Throughput

classmethod _missing_(value)[source]

Lookup function used when value is not found.

static get(key, default=- 1)[source]

Backport support for original codes.

HIGH = 1
NORMAL = 0

*

https://www.iana.org/assignments/ip-parameters/ip-parameters.xhtml#ip-parameters-1

https://www.iana.org/assignments/ip-parameters/ip-parameters.xhtml#ipv4-router-alert-option-values