public abstract class AbstractDnsOptPseudoRrRecord extends AbstractDnsRecord implements DnsOptPseudoRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDnsOptPseudoRrRecord(int maxPayloadSize) |
protected |
AbstractDnsOptPseudoRrRecord(int maxPayloadSize,
int extendedRcode,
int version) |
protected |
AbstractDnsOptPseudoRrRecord(int maxPayloadSize,
int extendedRcode,
int version,
int flags)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
extendedRcode()
Returns the
EXTENDED-RCODE which is encoded into DnsRecord.timeToLive(). |
int |
flags()
Returns the 16-bit
flags field which is encoded into the lower 16 bits of
DnsRecord.timeToLive(), as laid out by
RFC 6891. |
String |
toString() |
int |
version()
Returns the
VERSION which is encoded into DnsRecord.timeToLive(). |
dnsClass, equals, hashCode, name, timeToLive, typeclone, finalize, getClass, notify, notifyAll, wait, wait, waitdnsClass, name, timeToLive, typeprotected AbstractDnsOptPseudoRrRecord(int maxPayloadSize,
int extendedRcode,
int version)
protected AbstractDnsOptPseudoRrRecord(int maxPayloadSize,
int extendedRcode,
int version,
int flags)
maxPayloadSize - the maximum UDP payload size that can be reassembled and delivered by this
endpoint's network stack, encoded into the CLASS fieldextendedRcode - the upper 8 bits of the extended 12-bit RCODE; the lower 4 bits are carried
by the DNS message headerversion - the EDNS versionflags - the 16-bit flags field, which holds DO and Z; only its
low 16 bits are usedprotected AbstractDnsOptPseudoRrRecord(int maxPayloadSize)
public int extendedRcode()
DnsOptPseudoRecordEXTENDED-RCODE which is encoded into DnsRecord.timeToLive().extendedRcode in interface DnsOptPseudoRecordpublic int version()
DnsOptPseudoRecordVERSION which is encoded into DnsRecord.timeToLive().version in interface DnsOptPseudoRecordpublic int flags()
DnsOptPseudoRecordflags field which is encoded into the lower 16 bits of
DnsRecord.timeToLive(), as laid out by
RFC 6891.
DO, defined by RFC 3225, is the
most significant bit of that field, so (flags() & 0x8000) != 0 tests for DNSSEC OK.
Further bits are assigned by the IANA EDNS Header Flags registry; the remaining bits are
Z, which senders set to zero and receivers ignore.
flags in interface DnsOptPseudoRecordpublic String toString()
toString in class AbstractDnsRecordCopyright © 2008–2026 The Netty Project. All rights reserved.