Variable OPTRR.record
The underlying ResourceRecord
struct OPTRR
{
// ...
ResourceRecord record
= ResourceRecord(Domain("."), TYPE .OPT, cast(CLASS)cast(ushort)4096u, 0u, RDATA(null, , , , , ));
// ...
}
OPT records are backed by RR, but their fields are to be interpreted
differently, e.g. ttl
is a bitfield (since OPT MUST NOT be cached),
and CLASS
is the UDP payload size.
This struct wraps the record and expose a set of get / set properties for easy manipulation.
See Also
https
//datatracker.ietf.org/doc/html/rfc6891#section-6.1.3