DNS.Message.EDNS0.Option.ECS (DNS v0.2.2)

View Source

edns-client-subnet

Option Code: 8

      +0 (MSB)                            +1 (LSB)
  +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0: |                          OPTION-CODE                          |
  +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
2: |                         OPTION-LENGTH                         |
  +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
4: |                            FAMILY                             |
  +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
6: |     SOURCE PREFIX-LENGTH      |     SCOPE PREFIX-LENGTH       |
  +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
8: |                           ADDRESS...                          /
  +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

Summary

Types

t()

@type t() :: %DNS.Message.EDNS0.Option.ECS{
  code: DNS.Message.EDNS0.OptionCode.t(),
  data:
    {client_subnet :: :inet.ip_address(), source_prefix :: 0..128,
     scope_prefix :: 0..128},
  length: 0..65535
}

Functions

from_binary(arg)

new(arg)

to_raw(arg)