ICMPv4 Constant Enumerations

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

ICMP_Type

ICMP Type Numbers [*]

ICMP_DestinationUnreachableCode

ICMP Destination Unreachable Codes [†]

ICMP_TimeExceededCode

ICMP Time Exceeded Codes [‡]

ICMP_ParameterProblemCode

ICMP Parameter Problem Codes [§]

ICMP Type Numbers

This module contains the constant enumeration for ICMP Type Numbers, which is automatically generated from pcapkit.vendor.icmp.type.Type.

class pcapkit.const.icmp.type.Type(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[Type] ICMP Type Numbers [RFC 792]

Echo_Reply = 0

Echo Reply [RFC 792]

Unassigned_1 = 1

Unassigned

Unassigned_2 = 2

Unassigned

Destination_Unreachable = 3

Destination Unreachable [RFC 792]

Source_Quench = 4

Source Quench (Deprecated) [RFC 792][RFC 6633]

Redirect = 5

Redirect [RFC 792]

Alternate_Host_Address = 6

Alternate Host Address (Deprecated) [RFC 6918]

Unassigned_7 = 7

Unassigned

Echo = 8

Echo [RFC 792]

Router_Advertisement = 9

Router Advertisement [RFC 1256]

Router_Solicitation = 10

Router Solicitation [RFC 1256]

Time_Exceeded = 11

Time Exceeded [RFC 792]

Parameter_Problem = 12

Parameter Problem [RFC 792]

Timestamp = 13

Timestamp [RFC 792]

Timestamp_Reply = 14

Timestamp Reply [RFC 792]

Information_Request = 15

Information Request (Deprecated) [RFC 792][RFC 6918]

Information_Reply = 16

Information Reply (Deprecated) [RFC 792][RFC 6918]

Address_Mask_Request = 17

Address Mask Request (Deprecated) [RFC 950][RFC 6918]

Address_Mask_Reply = 18

Address Mask Reply (Deprecated) [RFC 950][RFC 6918]

Reserved_19 = 19

Reserved (for Security) [Solo]

Traceroute = 30

Traceroute (Deprecated) [RFC 1393][RFC 6918]

Datagram_Conversion_Error = 31

Datagram Conversion Error (Deprecated) [RFC 1475][RFC 6918]

Mobile_Host_Redirect = 32

Mobile Host Redirect (Deprecated) [David Johnson][RFC 6918]

IPv6_Where_Are_You = 33

IPv6 Where-Are-You (Deprecated) [Simpson][RFC 6918]

IPv6_I_Am_Here = 34

IPv6 I-Am-Here (Deprecated) [Simpson][RFC 6918]

Mobile_Registration_Request = 35

Mobile Registration Request (Deprecated) [Simpson][RFC 6918]

Mobile_Registration_Reply = 36

Mobile Registration Reply (Deprecated) [Simpson][RFC 6918]

Domain_Name_Request = 37

Domain Name Request (Deprecated) [RFC 1788][RFC 6918]

Domain_Name_Reply = 38

Domain Name Reply (Deprecated) [RFC 1788][RFC 6918]

SKIP = 39

SKIP (Deprecated) [Markson][RFC 6918]

Photuris = 40

Photuris [RFC 2521]

ICMP_messages_utilized_by_experimental_mobility_protocols_such_as_Seamoby = 41

ICMP messages utilized by experimental mobility protocols such as Seamoby [RFC 4065]

Extended_Echo_Request = 42

Extended Echo Request [RFC 8335]

Extended_Echo_Reply = 43

Extended Echo Reply [RFC 8335]

RFC3692_style_Experiment_1 = 253

RFC3692-style Experiment 1 [RFC 4727]

RFC3692_style_Experiment_2 = 254

RFC3692-style Experiment 2 [RFC 4727]

Reserved_255 = 255

Reserved [JBP]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

Type

ICMP Destination Unreachable Codes

This module contains the constant enumeration for ICMP Destination Unreachable Codes, which is automatically generated from pcapkit.vendor.icmp.destination_unreachable_code.DestinationUnreachableCode.

class pcapkit.const.icmp.destination_unreachable_code.DestinationUnreachableCode(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[DestinationUnreachableCode] ICMP Destination Unreachable Codes [RFC 792]

Net_Unreachable = 0

Net Unreachable [RFC 792]

Host_Unreachable = 1

Host Unreachable [RFC 792]

Protocol_Unreachable = 2

Protocol Unreachable [RFC 792]

Port_Unreachable = 3

Port Unreachable [RFC 792]

Fragmentation_Needed_and_Don_t_Fragment_was_Set = 4

Fragmentation Needed and Don’t Fragment was Set [RFC 792]

Source_Route_Failed = 5

Source Route Failed [RFC 792]

Destination_Network_Unknown = 6

Destination Network Unknown [RFC 1122]

Destination_Host_Unknown = 7

Destination Host Unknown [RFC 1122]

Source_Host_Isolated = 8

Source Host Isolated [RFC 1122]

Communication_with_Destination_Network_is_Administratively_Prohibited = 9

Communication with Destination Network is Administratively Prohibited [RFC 1122]

Communication_with_Destination_Host_is_Administratively_Prohibited = 10

Communication with Destination Host is Administratively Prohibited [RFC 1122]

Destination_Network_Unreachable_for_Type_of_Service = 11

Destination Network Unreachable for Type of Service [RFC 1122]

Destination_Host_Unreachable_for_Type_of_Service = 12

Destination Host Unreachable for Type of Service [RFC 1122]

Communication_Administratively_Prohibited = 13

Communication Administratively Prohibited [RFC 1812]

Host_Precedence_Violation = 14

Host Precedence Violation [RFC 1812]

Precedence_cutoff_in_effect = 15

Precedence cutoff in effect [RFC 1812]

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

DestinationUnreachableCode

ICMP Time Exceeded Codes

This module contains the constant enumeration for ICMP Time Exceeded Codes, which is automatically generated from pcapkit.vendor.icmp.time_exceeded_code.TimeExceededCode.

class pcapkit.const.icmp.time_exceeded_code.TimeExceededCode(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[TimeExceededCode] ICMP Time Exceeded Codes [RFC 792]

Time_to_Live_exceeded_in_Transit = 0

Time to Live exceeded in Transit

Fragment_Reassembly_Time_Exceeded = 1

Fragment Reassembly Time Exceeded

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

TimeExceededCode

ICMP Parameter Problem Codes

This module contains the constant enumeration for ICMP Parameter Problem Codes, which is automatically generated from pcapkit.vendor.icmp.parameter_problem_code.ParameterProblemCode.

class pcapkit.const.icmp.parameter_problem_code.ParameterProblemCode(*values)[source]

Bases: EnumRegistry, aenum.IntEnum

[ParameterProblemCode] ICMP Parameter Problem Codes [RFC 792][RFC 1108]

Pointer_indicates_the_error = 0

Pointer indicates the error

Missing_a_Required_Option = 1

Missing a Required Option [RFC 1108]

Bad_Length = 2

Bad Length

classmethod _validate_value(value)[source]

Reject value unless it passes the range check _missing_() makes.

Overrides _validate_value() with that check and the message it raises, so register() refuses exactly the values get() refuses, in the same words (#1816).

Parameters:

value (Any) – Value about to be looked up or minted.

Raises:

EnumValueError – If value fails that check. A ValueError, so an except ValueError caller is unaffected.

classmethod _missing_(value)[source]

Lookup function used when value is not found.

Parameters:

value (int) – Value to get enum item.

Return type:

ParameterProblemCode

Footnotes