|
Electroneum
|

Go to the source code of this file.
Classes | |
| struct | val_env |
| struct | val_qstate |
Macros | |
| #define | NULL_KEY_TTL 60 /* seconds */ |
| #define | BOGUS_KEY_TTL 60 /* seconds */ |
| #define | VAL_MAX_RESTART_COUNT 5 |
| #define | SENTINEL_IS "root-key-sentinel-is-ta-" |
| #define | SENTINEL_NOT "root-key-sentinel-not-ta-" |
| #define | SENTINEL_KEYTAG_LEN 5 |
Enumerations | |
| enum | val_state { VAL_INIT_STATE = 0, VAL_FINDKEY_STATE, VAL_VALIDATE_STATE, VAL_FINISHED_STATE, VAL_DLVLOOKUP_STATE } |
Functions | |
| struct module_func_block * | val_get_funcblock (void) |
| const char * | val_state_to_string (enum val_state state) |
| int | val_init (struct module_env *env, int id) |
| void | val_deinit (struct module_env *env, int id) |
| void | val_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound) |
| void | val_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super) |
| void | val_clear (struct module_qstate *qstate, int id) |
| size_t | val_get_mem (struct module_env *env, int id) |
This file contains a module that performs validation of DNS queries. According to RFC 4034.
Definition in file validator.h.
| #define BOGUS_KEY_TTL 60 /* seconds */ |
TTL for bogus key entries. When a DS or DNSKEY fails in the chain of trust the entire zone for that name is blacked out for this TTL.
Definition at line 65 of file validator.h.
| #define NULL_KEY_TTL 60 /* seconds */ |
This is the TTL to use when a trust anchor fails to prime. A trust anchor will be primed no more often than this interval. Used when harden- dnssec-stripped is off and the trust anchor fails.
Definition at line 59 of file validator.h.
| #define SENTINEL_IS "root-key-sentinel-is-ta-" |
Root key sentinel is ta preamble
Definition at line 71 of file validator.h.
| #define SENTINEL_KEYTAG_LEN 5 |
Root key sentinal keytag length
Definition at line 75 of file validator.h.
| #define SENTINEL_NOT "root-key-sentinel-not-ta-" |
Root key sentinel is not ta preamble
Definition at line 73 of file validator.h.
| #define VAL_MAX_RESTART_COUNT 5 |
max number of query restarts, number of IPs to probe
Definition at line 68 of file validator.h.
| enum val_state |
State of the validator for a query.
Definition at line 131 of file validator.h.
| void val_clear | ( | struct module_qstate * | qstate, |
| int | id | ||
| ) |
validator cleanup query state
| void val_deinit | ( | struct module_env * | env, |
| int | id | ||
| ) |
validator deinit
| struct module_func_block* val_get_funcblock | ( | void | ) |
Get the validator function block.
| size_t val_get_mem | ( | struct module_env * | env, |
| int | id | ||
| ) |
Debug helper routine that assists worker in determining memory in use.
| env | module environment |
| id | module id. |
| void val_inform_super | ( | struct module_qstate * | qstate, |
| int | id, | ||
| struct module_qstate * | super | ||
| ) |
inform validator super.
| qstate | query state that finished. |
| id | module id. |
| super | the qstate to inform. |
| int val_init | ( | struct module_env * | env, |
| int | id | ||
| ) |
validator init
| void val_operate | ( | struct module_qstate * | qstate, |
| enum module_ev | event, | ||
| int | id, | ||
| struct outbound_entry * | outbound | ||
| ) |
validator operate on a query
| const char* val_state_to_string | ( | enum val_state | state | ) |
Get validator state as a string
| state | to convert |