Class DefaultDnsOptEcsRecord

All Implemented Interfaces:
DnsOptEcsRecord, DnsOptPseudoRecord, DnsRecord

@UnstableApi public final class DefaultDnsOptEcsRecord extends AbstractDnsOptPseudoRrRecord implements DnsOptEcsRecord
Default DnsOptEcsRecord implementation.
  • Field Details

    • srcPrefixLength

      private final int srcPrefixLength
    • address

      private final byte[] address
  • Constructor Details

    • DefaultDnsOptEcsRecord

      public DefaultDnsOptEcsRecord(int maxPayloadSize, int extendedRcode, int version, int srcPrefixLength, byte[] address)
      Creates a new instance.
      Parameters:
      maxPayloadSize - the suggested max payload size in bytes
      extendedRcode - the extended rcode
      version - the version
      srcPrefixLength - the prefix length
      address - the bytes of the InetAddress to use
    • DefaultDnsOptEcsRecord

      public DefaultDnsOptEcsRecord(int maxPayloadSize, int srcPrefixLength, byte[] address)
      Creates a new instance.
      Parameters:
      maxPayloadSize - the suggested max payload size in bytes
      srcPrefixLength - the prefix length
      address - the bytes of the InetAddress to use
    • DefaultDnsOptEcsRecord

      public DefaultDnsOptEcsRecord(int maxPayloadSize, InternetProtocolFamily protocolFamily)
      Creates a new instance.
      Parameters:
      maxPayloadSize - the suggested max payload size in bytes
      protocolFamily - the InternetProtocolFamily to use. This should be the same as the one used to send the query.
  • Method Details