OpenDNSSEC-signer
2.1.5
|
Go to the source code of this file.
Data Structures | |
struct | edns_data_struct |
struct | edns_rr_struct |
Macros | |
#define | OPT_LEN 9U /* length of the NSD EDNS response record minus 2 */ |
#define | OPT_RDATA 2 /* holds the rdata length comes after OPT_LEN */ |
#define | DNSSEC_OK_MASK 0x8000U /* do bit mask */ |
#define | EDNS_MAX_MESSAGE_LEN 4096 |
Typedefs | |
typedef struct edns_data_struct | edns_data_type |
typedef enum edns_status_enum | edns_status |
typedef struct edns_rr_struct | edns_rr_type |
Enumerations | |
enum | edns_status_enum { EDNS_NOT_PRESENT, EDNS_OK, EDNS_ERROR } |
Functions | |
void | edns_init (edns_data_type *data, uint16_t max_length) |
edns_rr_type * | edns_rr_create (void) |
void | edns_rr_reset (edns_rr_type *err) |
int | edns_rr_parse (edns_rr_type *err, buffer_type *buffer) |
size_t | edns_rr_reserved_space (edns_rr_type *err) |
void | edns_rr_cleanup (edns_rr_type *err) |
#define OPT_LEN 9U /* length of the NSD EDNS response record minus 2 */ |
#define OPT_RDATA 2 /* holds the rdata length comes after OPT_LEN */ |
typedef struct edns_data_struct edns_data_type |
typedef struct edns_rr_struct edns_rr_type |
typedef enum edns_status_enum edns_status |
enum edns_status_enum |
void edns_init | ( | edns_data_type * | data, |
uint16_t | max_length | ||
) |
Initialize EDNS.
[in] | data | EDNS data. |
[in] | max_length | maximum length. |
Initialize EDNS.
Definition at line 64 of file edns.c.
References edns_data_struct::error, and edns_data_struct::ok.
void edns_rr_cleanup | ( | edns_rr_type * | err | ) |
Definition at line 172 of file edns.c.
Referenced by query_cleanup().
edns_rr_type* edns_rr_create | ( | ) |
Create new EDNS RR.
[in] | allocator | memory allocator. |
Create new EDNS RR.
Definition at line 50 of file edns.c.
References edns_rr_reset().
Referenced by query_create().
int edns_rr_parse | ( | edns_rr_type * | err, |
buffer_type * | buffer | ||
) |
size_t edns_rr_reserved_space | ( | edns_rr_type * | err | ) |
The amount of space to reserve in the response for the EDNS data.
[in] | err | EDNS record. |
The amount of space to reserve in the response for the EDNS data.
Definition at line 162 of file edns.c.
References EDNS_NOT_PRESENT, OPT_LEN, OPT_RDATA, and edns_rr_struct::status.
Referenced by query_prepare().
void edns_rr_reset | ( | edns_rr_type * | err | ) |
Reset EDNS OPT RR.
[in] | err | EDNS record. |
Reset EDNS OPT RR.
Definition at line 90 of file edns.c.
References edns_rr_struct::dnssec_ok, EDNS_NOT_PRESENT, edns_rr_struct::maxlen, edns_rr_struct::position, and edns_rr_struct::status.
Referenced by edns_rr_create(), and query_reset().