DNS.Message.EDNS0.Option.TcpKeepalive (DNS v0.4.1)

View Source

EDNS0.Option.TcpKeepalive RFC7828

The edns-tcp-keepalive option is used to negotiate TCP keepalive parameters between DNS clients and servers.

Option Format:

                  1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION-CODE = 11 | OPTION-LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TIMEOUT-COUNT | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

  • TIMEOUT-COUNT: 2 octets, timeout value in 100ms units (or 0 if not specified)

Summary

Types

t()

@type t() :: %DNS.Message.EDNS0.Option.TcpKeepalive{
  code: DNS.Message.EDNS0.OptionCode.t(),
  data: timeout_count :: 0..65535 | nil,
  length: 0..65535
}

Functions

from_iodata(arg)

new(timeout_count \\ nil)

@spec new(integer() | nil) :: t()