public final class DefaultDnsOptEcsRecord extends AbstractDnsOptPseudoRrRecord implements DnsOptEcsRecord
DnsOptEcsRecord
implementation.CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
Constructor and Description |
---|
DefaultDnsOptEcsRecord(int maxPayloadSize,
int srcPrefixLength,
byte[] address)
Creates a new instance.
|
DefaultDnsOptEcsRecord(int maxPayloadSize,
InternetProtocolFamily protocolFamily)
Creates a new instance.
|
DefaultDnsOptEcsRecord(int maxPayloadSize,
int extendedRcode,
int version,
int srcPrefixLength,
byte[] address)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
address()
Returns the bytes of the
InetAddress to use. |
int |
scopePrefixLength()
Returns the leftmost number of significant bits of ADDRESS that the response covers.
|
int |
sourcePrefixLength()
Returns the leftmost number of significant bits of ADDRESS to be used for the lookup.
|
String |
toString() |
extendedRcode, flags, version
dnsClass, equals, hashCode, name, timeToLive, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
extendedRcode, flags, version
dnsClass, name, timeToLive, type
public DefaultDnsOptEcsRecord(int maxPayloadSize, int extendedRcode, int version, int srcPrefixLength, byte[] address)
maxPayloadSize
- the suggested max payload size in bytesextendedRcode
- the extended rcodeversion
- the versionsrcPrefixLength
- the prefix lengthaddress
- the bytes of the InetAddress
to usepublic DefaultDnsOptEcsRecord(int maxPayloadSize, int srcPrefixLength, byte[] address)
maxPayloadSize
- the suggested max payload size in bytessrcPrefixLength
- the prefix lengthaddress
- the bytes of the InetAddress
to usepublic DefaultDnsOptEcsRecord(int maxPayloadSize, InternetProtocolFamily protocolFamily)
maxPayloadSize
- the suggested max payload size in bytesprotocolFamily
- the InternetProtocolFamily
to use. This should be the same as the one used to
send the query.public int sourcePrefixLength()
DnsOptEcsRecord
sourcePrefixLength
in interface DnsOptEcsRecord
public int scopePrefixLength()
DnsOptEcsRecord
scopePrefixLength
in interface DnsOptEcsRecord
public byte[] address()
DnsOptEcsRecord
InetAddress
to use.address
in interface DnsOptEcsRecord
public String toString()
toString
in class AbstractDnsOptPseudoRrRecord
Copyright © 2008–2024 The Netty Project. All rights reserved.