sdns
low-level DNS library
Loading...
Searching...
No Matches
Public Attributes | List of all members
_sdns_opt_rdata Struct Reference

#include <sdns.h>

Collaboration diagram for _sdns_opt_rdata:
Collaboration graph
[legend]

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_rdatanext
 non-rfc field. Just to keep the reference to the next option structure
 

Detailed Description

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                          /
   /                                                               /
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+


The documentation for this struct was generated from the following file: