|
sdns
low-level DNS library
|
#include <sdns.h>

Public Attributes | |
| uint16_t | option_code |
| 16bit option code | |
| uint16_t | option_length |
| 16bit option length specifies the length of the option data | |
| char * | option_data |
| Pointer to the option data. | |
| struct _sdns_opt_rdata * | next |
| non-rfc field. Just to keep the reference to the next option structure | |
The rdata part of the OPT section has the following format based on RFC2671 Section 4.4
+0 (MSB) +1 (LSB)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0: | OPTION-CODE |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
2: | OPTION-LENGTH |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
4: | |
/ OPTION-DATA /
/ /
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+