Package org.pcap4j.packet.namednumber
Class DnsRCode
- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Byte,DnsRCode>
-
- org.pcap4j.packet.namednumber.DnsRCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DnsRCode>
public final class DnsRCode extends NamedNumber<java.lang.Byte,DnsRCode>
DNS RCODE- Since:
- pcap4j 1.7.1
- Author:
- Kaito Yamada
- See Also:
- IANA Registry, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DnsRCode
FORM_ERR
Format Error: 1static DnsRCode
NO_ERROR
No Error: 0static DnsRCode
NOT_AUTH
Not Authorized: 9static DnsRCode
NOT_IMP
Not Implemented: 4static DnsRCode
NOT_ZONE
Name not contained in zone: 10static DnsRCode
NX_DOMAIN
Non-Existent Domain: 3static DnsRCode
NX_RR_SET
RR Set that should exist does not: 8static DnsRCode
REFUSED
Query Refused: 5static DnsRCode
SERV_FAIL
Server Failure: 2static DnsRCode
YX_DOMAIN
Name Exists when it should not: 6static DnsRCode
YX_RR_SET
RR Set Exists when it should not: 7
-
Constructor Summary
Constructors Constructor Description DnsRCode(java.lang.Byte value, java.lang.String name)
-
Method Summary
-
Methods inherited from class org.pcap4j.packet.namednumber.NamedNumber
equals, hashCode, name, toString, value, valueAsString
-
-
-
-
Field Detail
-
NO_ERROR
public static final DnsRCode NO_ERROR
No Error: 0
-
FORM_ERR
public static final DnsRCode FORM_ERR
Format Error: 1
-
SERV_FAIL
public static final DnsRCode SERV_FAIL
Server Failure: 2
-
NX_DOMAIN
public static final DnsRCode NX_DOMAIN
Non-Existent Domain: 3
-
NOT_IMP
public static final DnsRCode NOT_IMP
Not Implemented: 4
-
REFUSED
public static final DnsRCode REFUSED
Query Refused: 5
-
YX_DOMAIN
public static final DnsRCode YX_DOMAIN
Name Exists when it should not: 6
-
YX_RR_SET
public static final DnsRCode YX_RR_SET
RR Set Exists when it should not: 7
-
NX_RR_SET
public static final DnsRCode NX_RR_SET
RR Set that should exist does not: 8
-
NOT_AUTH
public static final DnsRCode NOT_AUTH
Not Authorized: 9
-
NOT_ZONE
public static final DnsRCode NOT_ZONE
Name not contained in zone: 10
-
-
Method Detail
-
getInstance
public static DnsRCode getInstance(java.lang.Byte value)
- Parameters:
value
- value- Returns:
- a DnsRCode object.
-
register
public static DnsRCode register(DnsRCode code)
- Parameters:
code
- code- Returns:
- a DnsRCode object.
-
compareTo
public int compareTo(DnsRCode o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<DnsRCode>
- Specified by:
compareTo
in classNamedNumber<java.lang.Byte,DnsRCode>
-
-