- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Byte,IcmpV6Code>
-
- org.pcap4j.packet.namednumber.IcmpV6Code
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IcmpV6Code>
public final class IcmpV6Code extends NamedNumber<java.lang.Byte,IcmpV6Code>
ICMPv6 Code- Since:
- pcap4j 0.9.15
- See Also:
- IANA Registry, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IcmpV6CodeADDR_UNREACHABLE[Type 1 — Destination Unreachable] address unreachable: 3static IcmpV6CodeBEYOND_SCOPE_OF_SRC_ADDR[Type 1 — Destination Unreachable] beyond scope of source address: 2static IcmpV6CodeCOMMUNICATION_WITH_DST_PROHIBITED[Type 1 — Destination Unreachable] communication with destination administratively prohibited: 1static IcmpV6CodeERRONEOUS_HEADER_FIELD[Type 4 - Parameter Problem] erroneous header field encountered: 0static IcmpV6CodeERROR_IN_SRC_ROUTING_HEADER[Type 1 — Destination Unreachable] Error in Source Routing Header: 7static IcmpV6CodeFIRST_FRAGMENT_HAS_INCOMPLETE_IP_V6_HEADER_CHAIN[Type 4 - Parameter Problem] IPv6 First Fragment has incomplete IPv6 Header Chain: 3static IcmpV6CodeFRAGMENT_REASSEMBLY_TIME_EXCEEDED[Type 3 — Time Exceeded] fragment reassembly time exceeded: 1static IcmpV6CodeHOP_LIMIT_EXCEEDED[Type 3 — Time Exceeded] hop limit exceeded in transit: 0static IcmpV6CodeNO_CODENo Code: 0static IcmpV6CodeNO_ROUTE_TO_DST[Type 1 — Destination Unreachable] no route to destination: 0static IcmpV6CodePORT_UNREACHABLE[Type 1 — Destination Unreachable] port unreachable: 4static IcmpV6CodeREFUSE[Type 140 - ICMP Node Information Response] The Responder refuses to supply the answer.private static java.util.Map<java.lang.Byte,java.util.Map<java.lang.Byte,IcmpV6Code>>registrystatic IcmpV6CodeREJECT_ROUTE_TO_DST[Type 1 — Destination Unreachable] reject route to destination: 6static IcmpV6CodeROUTER_RENUMBERING_COMMAND[Type 138 - Router Renumbering] Router Renumbering Command: 0static IcmpV6CodeROUTER_RENUMBERING_RESULT[Type 138 - Router Renumbering] Router Renumbering Result: 1static IcmpV6CodeSEQUENCE_NUMBER_RESET[Type 138 - Router Renumbering] Sequence Number Reset: 255private static longserialVersionUIDstatic IcmpV6CodeSRC_ADDR_FAILED_POLICY[Type 1 — Destination Unreachable] source address failed ingress/egress policy: 5static IcmpV6CodeSUBJECT_IP_V4_ADDRESS[Type 139 - ICMP Node Information Query] The Data field contains an IPv4 address which is the Subject of this Query: 2static IcmpV6CodeSUBJECT_IP_V6_ADDRESS[Type 139 - ICMP Node Information Query] The Data field contains an IPv6 address which is the Subject of this Query: 0static IcmpV6CodeSUBJECT_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: 1static IcmpV6CodeSUCCESSFUL_REPLY[Type 140 - ICMP Node Information Response] A successful reply.static IcmpV6CodeUNKNOWN_QTYPE[Type 140 - ICMP Node Information Response] The Qtype of the Query is unknown to the Responder.static IcmpV6CodeUNRECOGNIZED_IP_V6_OPT[Type 4 - Parameter Problem] unrecognized IPv6 option encountered: 2static IcmpV6CodeUNRECOGNIZED_NEXT_HEADER_TYPE[Type 4 - Parameter Problem] unrecognized Next Header type encountered: 1
-
Constructor Summary
Constructors Constructor Description IcmpV6Code(java.lang.Byte value, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IcmpV6Code o)static IcmpV6CodegetInstance(java.lang.Byte type, java.lang.Byte value)static IcmpV6Coderegister(IcmpV6Type type, IcmpV6Code code)java.lang.StringvalueAsString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
NO_CODE
public static final IcmpV6Code NO_CODE
No Code: 0
-
NO_ROUTE_TO_DST
public static final IcmpV6Code NO_ROUTE_TO_DST
[Type 1 — Destination Unreachable] no route to destination: 0
-
COMMUNICATION_WITH_DST_PROHIBITED
public static final IcmpV6Code COMMUNICATION_WITH_DST_PROHIBITED
[Type 1 — Destination Unreachable] communication with destination administratively prohibited: 1
-
BEYOND_SCOPE_OF_SRC_ADDR
public static final IcmpV6Code BEYOND_SCOPE_OF_SRC_ADDR
[Type 1 — Destination Unreachable] beyond scope of source address: 2
-
ADDR_UNREACHABLE
public static final IcmpV6Code ADDR_UNREACHABLE
[Type 1 — Destination Unreachable] address unreachable: 3
-
PORT_UNREACHABLE
public static final IcmpV6Code PORT_UNREACHABLE
[Type 1 — Destination Unreachable] port unreachable: 4
-
SRC_ADDR_FAILED_POLICY
public static final IcmpV6Code SRC_ADDR_FAILED_POLICY
[Type 1 — Destination Unreachable] source address failed ingress/egress policy: 5
-
REJECT_ROUTE_TO_DST
public static final IcmpV6Code REJECT_ROUTE_TO_DST
[Type 1 — Destination Unreachable] reject route to destination: 6
-
ERROR_IN_SRC_ROUTING_HEADER
public static final IcmpV6Code ERROR_IN_SRC_ROUTING_HEADER
[Type 1 — Destination Unreachable] Error in Source Routing Header: 7
-
HOP_LIMIT_EXCEEDED
public static final IcmpV6Code HOP_LIMIT_EXCEEDED
[Type 3 — Time Exceeded] hop limit exceeded in transit: 0
-
FRAGMENT_REASSEMBLY_TIME_EXCEEDED
public static final IcmpV6Code FRAGMENT_REASSEMBLY_TIME_EXCEEDED
[Type 3 — Time Exceeded] fragment reassembly time exceeded: 1
-
ERRONEOUS_HEADER_FIELD
public static final IcmpV6Code ERRONEOUS_HEADER_FIELD
[Type 4 - Parameter Problem] erroneous header field encountered: 0
-
UNRECOGNIZED_NEXT_HEADER_TYPE
public static final IcmpV6Code UNRECOGNIZED_NEXT_HEADER_TYPE
[Type 4 - Parameter Problem] unrecognized Next Header type encountered: 1
-
UNRECOGNIZED_IP_V6_OPT
public static final IcmpV6Code UNRECOGNIZED_IP_V6_OPT
[Type 4 - Parameter Problem] unrecognized IPv6 option encountered: 2
-
FIRST_FRAGMENT_HAS_INCOMPLETE_IP_V6_HEADER_CHAIN
public static final IcmpV6Code FIRST_FRAGMENT_HAS_INCOMPLETE_IP_V6_HEADER_CHAIN
[Type 4 - Parameter Problem] IPv6 First Fragment has incomplete IPv6 Header Chain: 3
-
ROUTER_RENUMBERING_COMMAND
public static final IcmpV6Code ROUTER_RENUMBERING_COMMAND
[Type 138 - Router Renumbering] Router Renumbering Command: 0
-
ROUTER_RENUMBERING_RESULT
public static final IcmpV6Code ROUTER_RENUMBERING_RESULT
[Type 138 - Router Renumbering] Router Renumbering Result: 1
-
SEQUENCE_NUMBER_RESET
public static final IcmpV6Code SEQUENCE_NUMBER_RESET
[Type 138 - Router Renumbering] Sequence Number Reset: 255
-
SUBJECT_IP_V6_ADDRESS
public static final IcmpV6Code 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
public static final IcmpV6Code 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
public static final IcmpV6Code 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
public static final IcmpV6Code SUCCESSFUL_REPLY
[Type 140 - ICMP Node Information Response] A successful reply. The Reply Data field may or may not be empty: 0
-
REFUSE
public static final IcmpV6Code REFUSE
[Type 140 - ICMP Node Information Response] The Responder refuses to supply the answer. The Reply Data field will be empty: 1
-
UNKNOWN_QTYPE
public static final IcmpV6Code 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
private static final java.util.Map<java.lang.Byte,java.util.Map<java.lang.Byte,IcmpV6Code>> registry
-
-
Method Detail
-
getInstance
public static IcmpV6Code getInstance(java.lang.Byte type, java.lang.Byte value)
- Parameters:
type- ICMPv6 typevalue- value- Returns:
- an IcmpV6Code object.
-
register
public static IcmpV6Code register(IcmpV6Type type, IcmpV6Code code)
- Parameters:
type- typecode- code- Returns:
- an IcmpV6Code object.
-
valueAsString
public java.lang.String valueAsString()
- Overrides:
valueAsStringin classNamedNumber<java.lang.Byte,IcmpV6Code>- Returns:
- a string representation of this value.
-
compareTo
public int compareTo(IcmpV6Code o)
- Specified by:
compareToin interfacejava.lang.Comparable<IcmpV6Code>- Specified by:
compareToin classNamedNumber<java.lang.Byte,IcmpV6Code>
-
-