Files
NLnetLabs-domain/examples
Martin HoffmannandGitHub 5075e31f7c Refactor OPT options. (#193)
This PR refactors the existing support for OPT options. It does the
following things:

  o  Changes all option data types to ensure their wire format is at most
     65,535 octets long. This requires changing the signatures of some
     creator functions. Their naming scheme and signatures are also changed
     to follow the pattern established with record data.

  o  Renamed `UnknownOptData::from_octets` to `new` and return a result.

  o  Completely redesigns DNS cookie options, adding support for standard
     server cookies introduced in RFC 9018.

  o  Change the type of `ExtendedError`’s text to `Str<Octs>` and change the
     return type of `set_text` to `()`.

  o  Changed the type `TcpKeepalive`’s content to a newtype `IdleTimeout` to
     make it easier to convert to and from durations.

  o  Changes Padding to just contain the padding octets and drop
     `PaddingMode`. Instead, the methods on OptBuilder` should be used to
     add padding.

This is a breaking change.
2023-04-28 11:20:35 +02:00
..
2023-04-28 11:20:35 +02:00
2021-01-14 11:50:50 +02:00
2022-11-07 15:11:36 +01:00
2021-01-14 11:50:50 +02:00