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

        @Deprecated
        public DefaultDnsOptEcsRecord​(int maxPayloadSize,
                                      io.netty.channel.socket.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.
      • DefaultDnsOptEcsRecord

        public DefaultDnsOptEcsRecord​(int maxPayloadSize,
                                      io.netty.channel.socket.SocketProtocolFamily socketProtocolFamily)
        Creates a new instance.
        Parameters:
        maxPayloadSize - the suggested max payload size in bytes
        socketProtocolFamily - the SocketProtocolFamily to use. This should be the same as the one used to send the query.