-
- All Superinterfaces:
DnsOptPseudoRecord
,DnsRecord
- All Known Implementing Classes:
DefaultDnsOptEcsRecord
@UnstableApi public interface DnsOptEcsRecord extends DnsOptPseudoRecord
An ECS record as defined in Client Subnet in DNS Queries.
-
-
Field Summary
-
Fields inherited from interface io.netty5.handler.codec.dns.DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
address()
Returns the bytes of theInetAddress
to use.DnsOptEcsRecord
copy()
Returns a copy of this record object.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.-
Methods inherited from interface io.netty5.handler.codec.dns.DnsOptPseudoRecord
extendedRcode, flags, version
-
Methods inherited from interface io.netty5.handler.codec.dns.DnsRecord
dnsClass, name, timeToLive, type
-
-
-
-
Method Detail
-
sourcePrefixLength
int sourcePrefixLength()
Returns the leftmost number of significant bits of ADDRESS to be used for the lookup.
-
scopePrefixLength
int scopePrefixLength()
Returns the leftmost number of significant bits of ADDRESS that the response covers. In queries, it MUST be 0.
-
address
byte[] address()
Returns the bytes of theInetAddress
to use.
-
copy
DnsOptEcsRecord copy()
Description copied from interface:DnsRecord
Returns a copy of this record object. Immutable record objects may return themselves.- Specified by:
copy
in interfaceDnsOptPseudoRecord
- Specified by:
copy
in interfaceDnsRecord
-
-