Class IcmpV4Code
java.lang.Object
org.pcap4j.packet.namednumber.NamedNumber<Byte, IcmpV4Code>
org.pcap4j.packet.namednumber.IcmpV4Code
- All Implemented Interfaces:
Serializable, Comparable<IcmpV4Code>
ICMPv4 Code
- Since:
- pcap4j 0.9.11
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IcmpV4Code[Type 6 — Alternate Host Address] Alternate Address for Host: 0static final IcmpV4Code[Type 40 — Photuris] Authentication Failed: 1static final IcmpV4Code[Type 12 — Parameter Problem] Bad Length: 2static final IcmpV4Code[Type 40 — Photuris] Bad SPI: 0static final IcmpV4Code[Type 3 — Destination Unreachable] Communication administratively prohibited by filtering: 13static final IcmpV4Code[Type 40 — Photuris] Decompression Failed: 2static final IcmpV4Code[Type 40 — Photuris] Decryption Failed: 3static final IcmpV4Code[Type 9 — Router Advertisement] Alternate Address for Host: 16static final IcmpV4Code[Type 3 — Destination Unreachable] Destination host administratively prohibited: 10static final IcmpV4Code[Type 3 — Destination Unreachable] Destination host unknown: 7static final IcmpV4Code[Type 3 — Destination Unreachable] Host unreachable for TOS: 12static final IcmpV4Code[Type 3 — Destination Unreachable] Destination network administratively prohibited: 9static final IcmpV4Code[Type 3 — Destination Unreachable] Destination network unknown: 6static final IcmpV4Code[Type 3 — Destination Unreachable] Network unreachable for TOS: 11static final IcmpV4Code[Type 11 — Time Exceeded] Fragment Reassembly Time Exceeded: 1static final IcmpV4Code[Type 3 — Destination Unreachable] Fragmentation needed but no fragment bit set: 4static final IcmpV4Code[Type 3 — Destination Unreachable] Host precedence violation: 14static final IcmpV4Code[Type 3 — Destination Unreachable] Host Unreachable: 1static final IcmpV4Code[Type 12 — Parameter Problem] Missing a Required Option: 1static final IcmpV4Code[Type 40 — Photuris] Need Authentication: 4static final IcmpV4Code[Type 40 — Photuris] Need Authorization: 5static final IcmpV4Code[Type 3 — Destination Unreachable] Network Unreachable: 0static final IcmpV4CodeNo Code: 0static final IcmpV4Code[Type 9 — Router Advertisement] Normal router advertisement: 0static final IcmpV4Code[Type 12 — Parameter Problem] Pointer indicates the error: 0static final IcmpV4Code[Type 3 — Destination Unreachable] Port Unreachable: 3static final IcmpV4Code[Type 3 — Destination Unreachable] Precedence cutoff in effect: 15static final IcmpV4Code[Type 3 — Destination Unreachable] Protocol Unreachable: 2static final IcmpV4Code[Type 5 — Redirect] Redirect datagrams for the Host: 1static final IcmpV4Code[Type 5 — Redirect] Redirect datagrams for the Network: 0static final IcmpV4Code[Type 5 — Redirect] Redirect datagrams for the Type of Service and Host: 3static final IcmpV4Code[Type 5 — Redirect] Redirect datagrams for the Type of Service and Network: 2private static final Map<Byte, Map<Byte, IcmpV4Code>> private static final longstatic final IcmpV4Code[Type 3 — Destination Unreachable] Source host isolated: 8static final IcmpV4Code[Type 3 — Destination Unreachable] Source routing failed: 5static final IcmpV4Code[Type 11 — Time Exceeded] Time to Live exceeded during transit: 0 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic IcmpV4CodegetInstance(Byte type, Byte value) static IcmpV4Coderegister(IcmpV4Type type, IcmpV4Code code)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NO_CODE
No Code: 0 -
NETWORK_UNREACHABLE
[Type 3 — Destination Unreachable] Network Unreachable: 0 -
HOST_UNREACHABLE
[Type 3 — Destination Unreachable] Host Unreachable: 1 -
PROTOCOL_UNREACHABLE
[Type 3 — Destination Unreachable] Protocol Unreachable: 2 -
PORT_UNREACHABLE
[Type 3 — Destination Unreachable] Port Unreachable: 3 -
FRAGMENTATION_BLOCKED
[Type 3 — Destination Unreachable] Fragmentation needed but no fragment bit set: 4 -
SRC_ROUTE_FAILED
[Type 3 — Destination Unreachable] Source routing failed: 5 -
DST_NETWORK_UNKNOWN
[Type 3 — Destination Unreachable] Destination network unknown: 6 -
DST_HOST_UNKNOWN
[Type 3 — Destination Unreachable] Destination host unknown: 7 -
SRC_HOST_ISOLATED
[Type 3 — Destination Unreachable] Source host isolated: 8 -
DST_NETWORK_PROHIBITED
[Type 3 — Destination Unreachable] Destination network administratively prohibited: 9 -
DST_HOST_PROHIBITED
[Type 3 — Destination Unreachable] Destination host administratively prohibited: 10 -
DST_NETWORK_UNREACHABLE_FOR_TOS
[Type 3 — Destination Unreachable] Network unreachable for TOS: 11 -
DST_HOST_UNREACHABLE_FOR_TOS
[Type 3 — Destination Unreachable] Host unreachable for TOS: 12 -
COMMUNICATION_PROHIBITED
[Type 3 — Destination Unreachable] Communication administratively prohibited by filtering: 13 -
HOST_PRECEDENCE_VIOLATION
[Type 3 — Destination Unreachable] Host precedence violation: 14 -
PRECEDENCE_CUTOFF_IN_EFFECT
[Type 3 — Destination Unreachable] Precedence cutoff in effect: 15 -
REDIRECT_DATAGRAMS_FOR_NETWORK
[Type 5 — Redirect] Redirect datagrams for the Network: 0 -
REDIRECT_DATAGRAMS_FOR_HOST
[Type 5 — Redirect] Redirect datagrams for the Host: 1 -
REDIRECT_DATAGRAMS_FOR_TOS_AND_NETWORK
[Type 5 — Redirect] Redirect datagrams for the Type of Service and Network: 2 -
REDIRECT_DATAGRAMS_FOR_TOS_AND_HOST
[Type 5 — Redirect] Redirect datagrams for the Type of Service and Host: 3 -
ALTERNATE_ADDRESS_FOR_HOST
[Type 6 — Alternate Host Address] Alternate Address for Host: 0 -
NORMAL_ROUTER_ADVERTISEMENT
[Type 9 — Router Advertisement] Normal router advertisement: 0 -
DOES_NOT_ROUTE_COMMON_TRAFFIC
[Type 9 — Router Advertisement] Alternate Address for Host: 16 -
TIME_TO_LIVE_EXCEEDED
[Type 11 — Time Exceeded] Time to Live exceeded during transit: 0 -
FRAGMENT_REASSEMBLY_TIME_EXCEEDED
[Type 11 — Time Exceeded] Fragment Reassembly Time Exceeded: 1 -
POINTER_INDICATES_ERROR
[Type 12 — Parameter Problem] Pointer indicates the error: 0 -
MISSING_REQUIRED_OPTION
[Type 12 — Parameter Problem] Missing a Required Option: 1 -
BAD_LENGTH
[Type 12 — Parameter Problem] Bad Length: 2 -
BAD_SPI
[Type 40 — Photuris] Bad SPI: 0 -
AUTHENTICATION_FAILED
[Type 40 — Photuris] Authentication Failed: 1 -
DECOMPRESSION_FAILED
[Type 40 — Photuris] Decompression Failed: 2 -
DECRYPTION_FAILED
[Type 40 — Photuris] Decryption Failed: 3 -
NEED_AUTHENTICATION
[Type 40 — Photuris] Need Authentication: 4 -
NEED_AUTHORIZATION
[Type 40 — Photuris] Need Authorization: 5 -
registry
-
-
Constructor Details
-
IcmpV4Code
-
-
Method Details
-
getInstance
- Parameters:
type- ICMPv4 typevalue- value- Returns:
- a IcmpV4Code object.
-
register
- Parameters:
type- typecode- code- Returns:
- a IcmpV4Code object.
-
valueAsString
- Overrides:
valueAsStringin classNamedNumber<Byte, IcmpV4Code>- Returns:
- a string representation of this value.
-
compareTo
- Specified by:
compareToin interfaceComparable<IcmpV4Code>- Specified by:
compareToin classNamedNumber<Byte, IcmpV4Code>
-