Class IcmpV6Code
java.lang.Object
org.pcap4j.packet.namednumber.NamedNumber<Byte, IcmpV6Code>
org.pcap4j.packet.namednumber.IcmpV6Code
- All Implemented Interfaces:
Serializable, Comparable<IcmpV6Code>
ICMPv6 Code
- Since:
- pcap4j 0.9.15
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IcmpV6Code[Type 1 — Destination Unreachable] address unreachable: 3static final IcmpV6Code[Type 1 — Destination Unreachable] beyond scope of source address: 2static final IcmpV6Code[Type 1 — Destination Unreachable] communication with destination administratively prohibited: 1static final IcmpV6Code[Type 4 - Parameter Problem] erroneous header field encountered: 0static final IcmpV6Code[Type 1 — Destination Unreachable] Error in Source Routing Header: 7static final IcmpV6Code[Type 4 - Parameter Problem] IPv6 First Fragment has incomplete IPv6 Header Chain: 3static final IcmpV6Code[Type 3 — Time Exceeded] fragment reassembly time exceeded: 1static final IcmpV6Code[Type 3 — Time Exceeded] hop limit exceeded in transit: 0static final IcmpV6CodeNo Code: 0static final IcmpV6Code[Type 1 — Destination Unreachable] no route to destination: 0static final IcmpV6Code[Type 1 — Destination Unreachable] port unreachable: 4static final IcmpV6Code[Type 140 - ICMP Node Information Response] The Responder refuses to supply the answer.private static final Map<Byte, Map<Byte, IcmpV6Code>> static final IcmpV6Code[Type 1 — Destination Unreachable] reject route to destination: 6static final IcmpV6Code[Type 138 - Router Renumbering] Router Renumbering Command: 0static final IcmpV6Code[Type 138 - Router Renumbering] Router Renumbering Result: 1static final IcmpV6Code[Type 138 - Router Renumbering] Sequence Number Reset: 255private static final longstatic final IcmpV6Code[Type 1 — Destination Unreachable] source address failed ingress/egress policy: 5static final IcmpV6Code[Type 139 - ICMP Node Information Query] The Data field contains an IPv4 address which is the Subject of this Query: 2static final IcmpV6Code[Type 139 - ICMP Node Information Query] The Data field contains an IPv6 address which is the Subject of this Query: 0static final IcmpV6Code[Type 139 - ICMP Node Information Query] The Data field contains a name which is the Subject of this Query, or is empty, as in the case of a NOOP: 1static final IcmpV6Code[Type 140 - ICMP Node Information Response] A successful reply.static final IcmpV6Code[Type 140 - ICMP Node Information Response] The Qtype of the Query is unknown to the Responder.static final IcmpV6Code[Type 4 - Parameter Problem] unrecognized IPv6 option encountered: 2static final IcmpV6Code[Type 4 - Parameter Problem] unrecognized Next Header type encountered: 1 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic IcmpV6CodegetInstance(Byte type, Byte value) static IcmpV6Coderegister(IcmpV6Type type, IcmpV6Code code)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NO_CODE
No Code: 0 -
NO_ROUTE_TO_DST
[Type 1 — Destination Unreachable] no route to destination: 0 -
COMMUNICATION_WITH_DST_PROHIBITED
[Type 1 — Destination Unreachable] communication with destination administratively prohibited: 1 -
BEYOND_SCOPE_OF_SRC_ADDR
[Type 1 — Destination Unreachable] beyond scope of source address: 2 -
ADDR_UNREACHABLE
[Type 1 — Destination Unreachable] address unreachable: 3 -
PORT_UNREACHABLE
[Type 1 — Destination Unreachable] port unreachable: 4 -
SRC_ADDR_FAILED_POLICY
[Type 1 — Destination Unreachable] source address failed ingress/egress policy: 5 -
REJECT_ROUTE_TO_DST
[Type 1 — Destination Unreachable] reject route to destination: 6 -
ERROR_IN_SRC_ROUTING_HEADER
[Type 1 — Destination Unreachable] Error in Source Routing Header: 7 -
HOP_LIMIT_EXCEEDED
[Type 3 — Time Exceeded] hop limit exceeded in transit: 0 -
FRAGMENT_REASSEMBLY_TIME_EXCEEDED
[Type 3 — Time Exceeded] fragment reassembly time exceeded: 1 -
ERRONEOUS_HEADER_FIELD
[Type 4 - Parameter Problem] erroneous header field encountered: 0 -
UNRECOGNIZED_NEXT_HEADER_TYPE
[Type 4 - Parameter Problem] unrecognized Next Header type encountered: 1 -
UNRECOGNIZED_IP_V6_OPT
[Type 4 - Parameter Problem] unrecognized IPv6 option encountered: 2 -
FIRST_FRAGMENT_HAS_INCOMPLETE_IP_V6_HEADER_CHAIN
[Type 4 - Parameter Problem] IPv6 First Fragment has incomplete IPv6 Header Chain: 3 -
ROUTER_RENUMBERING_COMMAND
[Type 138 - Router Renumbering] Router Renumbering Command: 0 -
ROUTER_RENUMBERING_RESULT
[Type 138 - Router Renumbering] Router Renumbering Result: 1 -
SEQUENCE_NUMBER_RESET
[Type 138 - Router Renumbering] Sequence Number Reset: 255 -
SUBJECT_IP_V6_ADDRESS
[Type 139 - ICMP Node Information Query] The Data field contains an IPv6 address which is the Subject of this Query: 0 -
SUBJECT_NAME
[Type 139 - ICMP Node Information Query] The Data field contains a name which is the Subject of this Query, or is empty, as in the case of a NOOP: 1 -
SUBJECT_IP_V4_ADDRESS
[Type 139 - ICMP Node Information Query] The Data field contains an IPv4 address which is the Subject of this Query: 2 -
SUCCESSFUL_REPLY
[Type 140 - ICMP Node Information Response] A successful reply. The Reply Data field may or may not be empty: 0 -
REFUSE
[Type 140 - ICMP Node Information Response] The Responder refuses to supply the answer. The Reply Data field will be empty: 1 -
UNKNOWN_QTYPE
[Type 140 - ICMP Node Information Response] The Qtype of the Query is unknown to the Responder. The Reply Data field will be empty: 2 -
registry
-
-
Constructor Details
-
IcmpV6Code
-
-
Method Details
-
getInstance
- Parameters:
type- ICMPv6 typevalue- value- Returns:
- an IcmpV6Code object.
-
register
- Parameters:
type- typecode- code- Returns:
- an IcmpV6Code object.
-
valueAsString
- Overrides:
valueAsStringin classNamedNumber<Byte, IcmpV6Code>- Returns:
- a string representation of this value.
-
compareTo
- Specified by:
compareToin interfaceComparable<IcmpV6Code>- Specified by:
compareToin classNamedNumber<Byte, IcmpV6Code>
-