DNS.Message.EDNS0.Option.Padding (DNS v0.4.1)
View SourceEDNS0.Option.Padding RFC7830
The Padding option is used to pad DNS messages to a specific size to prevent traffic analysis attacks.
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 = 12 | OPTION-LENGTH | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | / PADDING DATA / / / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- PADDING DATA: Variable length, typically zeros or random data
Summary
Types
@type t() :: %DNS.Message.EDNS0.Option.Padding{ code: DNS.Message.EDNS0.OptionCode.t(), data: binary(), length: 0..65535 }