Class DefaultDnsOptEcsRecord

    • Constructor Detail

      • 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,
                                      ProtocolFamily protocolFamily)
        Creates a new instance.
        Parameters:
        maxPayloadSize - the suggested max payload size in bytes
        protocolFamily - the ProtocolFamily to use. This should be the same as the one used to send the query.