IPv4 Constant Enumerations

Classification Level Encodings

class pcapkit.const.ipv4.classification_level.ClassificationLevel(*args, **kwds)[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(*args, **kwds)[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(*args, **kwds)[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
CIPSO = 134
DPS = 151
EIP = 145
ENCODE = 15
EOOL = 0
EXP_158 = 158
EXP_222 = 222
EXP_30 = 30
EXP_94 = 94
E_SEC = 133
FINN = 205
IMITD = 144
LSR = 131
MTUP = 11
MTUR = 12
NOP = 1
QS = 25
RR = 7
RTRALT = 148
SDB = 149
SEC = 130
SID = 136
SSR = 137
TR = 82
TS = 68
UMP = 152
Unassigned_150 = 150
VISA = 142
ZSU = 10

Protection Authority Bit Assignments

class pcapkit.const.ipv4.protection_authority.ProtectionAuthority(*args, **kwds)[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(*args, **kwds)[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(*args, **kwds)[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_1 = 2
Aggregated_Reservation_Nesting_Level_10 = 11
Aggregated_Reservation_Nesting_Level_11 = 12
Aggregated_Reservation_Nesting_Level_12 = 13
Aggregated_Reservation_Nesting_Level_13 = 14
Aggregated_Reservation_Nesting_Level_14 = 15
Aggregated_Reservation_Nesting_Level_15 = 16
Aggregated_Reservation_Nesting_Level_16 = 17
Aggregated_Reservation_Nesting_Level_17 = 18
Aggregated_Reservation_Nesting_Level_18 = 19
Aggregated_Reservation_Nesting_Level_19 = 20
Aggregated_Reservation_Nesting_Level_2 = 3
Aggregated_Reservation_Nesting_Level_20 = 21
Aggregated_Reservation_Nesting_Level_21 = 22
Aggregated_Reservation_Nesting_Level_22 = 23
Aggregated_Reservation_Nesting_Level_23 = 24
Aggregated_Reservation_Nesting_Level_24 = 25
Aggregated_Reservation_Nesting_Level_25 = 26
Aggregated_Reservation_Nesting_Level_26 = 27
Aggregated_Reservation_Nesting_Level_27 = 28
Aggregated_Reservation_Nesting_Level_28 = 29
Aggregated_Reservation_Nesting_Level_29 = 30
Aggregated_Reservation_Nesting_Level_3 = 4
Aggregated_Reservation_Nesting_Level_30 = 31
Aggregated_Reservation_Nesting_Level_31 = 32
Aggregated_Reservation_Nesting_Level_4 = 5
Aggregated_Reservation_Nesting_Level_5 = 6
Aggregated_Reservation_Nesting_Level_6 = 7
Aggregated_Reservation_Nesting_Level_7 = 8
Aggregated_Reservation_Nesting_Level_8 = 9
Aggregated_Reservation_Nesting_Level_9 = 10
NSIS_NATFW_NSLP = 65
QoS_NSLP_Aggregation_Level_0 = 33
QoS_NSLP_Aggregation_Level_1 = 34
QoS_NSLP_Aggregation_Level_10 = 43
QoS_NSLP_Aggregation_Level_11 = 44
QoS_NSLP_Aggregation_Level_12 = 45
QoS_NSLP_Aggregation_Level_13 = 46
QoS_NSLP_Aggregation_Level_14 = 47
QoS_NSLP_Aggregation_Level_15 = 48
QoS_NSLP_Aggregation_Level_16 = 49
QoS_NSLP_Aggregation_Level_17 = 50
QoS_NSLP_Aggregation_Level_18 = 51
QoS_NSLP_Aggregation_Level_19 = 52
QoS_NSLP_Aggregation_Level_2 = 35
QoS_NSLP_Aggregation_Level_20 = 53
QoS_NSLP_Aggregation_Level_21 = 54
QoS_NSLP_Aggregation_Level_22 = 55
QoS_NSLP_Aggregation_Level_23 = 56
QoS_NSLP_Aggregation_Level_24 = 57
QoS_NSLP_Aggregation_Level_25 = 58
QoS_NSLP_Aggregation_Level_26 = 59
QoS_NSLP_Aggregation_Level_27 = 60
QoS_NSLP_Aggregation_Level_28 = 61
QoS_NSLP_Aggregation_Level_29 = 62
QoS_NSLP_Aggregation_Level_3 = 36
QoS_NSLP_Aggregation_Level_30 = 63
QoS_NSLP_Aggregation_Level_31 = 64
QoS_NSLP_Aggregation_Level_4 = 37
QoS_NSLP_Aggregation_Level_5 = 38
QoS_NSLP_Aggregation_Level_6 = 39
QoS_NSLP_Aggregation_Level_7 = 40
QoS_NSLP_Aggregation_Level_8 = 41
QoS_NSLP_Aggregation_Level_9 = 42
Reserved = 65535

ToS (DS Field) Delay

class pcapkit.const.ipv4.tos_del.ToSDelay(*args, **kwds)[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(*args, **kwds)[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(*args, **kwds)[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(*args, **kwds)[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(*args, **kwds)[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