|
Electroneum
|
#include "util/rbtree.h"
Go to the source code of this file.
Classes | |
| struct | iter_priv |
Functions | |
| struct iter_priv * | priv_create (void) |
| void | priv_delete (struct iter_priv *priv) |
| int | priv_apply_cfg (struct iter_priv *priv, struct config_file *cfg) |
| int | priv_rrset_bad (struct iter_priv *priv, struct sldns_buffer *pkt, struct rrset_parse *rrset) |
| size_t | priv_get_mem (struct iter_priv *priv) |
This file contains functions to assist the iterator module. Keep track of the private addresses and lookup fast.
Definition in file iter_priv.h.
| int priv_apply_cfg | ( | struct iter_priv * | priv, |
| struct config_file * | cfg | ||
| ) |
Process priv config.
| priv | where to store. |
| cfg | config options. |
| struct iter_priv* priv_create | ( | void | ) |
Create priv structure
| void priv_delete | ( | struct iter_priv * | priv | ) |
Delete priv structure.
| priv | to delete. |
| size_t priv_get_mem | ( | struct iter_priv * | priv | ) |
Get memory used by priv structure.
| priv | structure for address storage. |
| int priv_rrset_bad | ( | struct iter_priv * | priv, |
| struct sldns_buffer * | pkt, | ||
| struct rrset_parse * | rrset | ||
| ) |
See if rrset is bad. Will remove individual RRs that are bad (if possible) to sanitize the RRset without removing it completely.
| priv | structure for private address storage. |
| pkt | packet to decompress rrset name in. |
| rrset | the rrset to examine, A or AAAA. |