|
Electroneum
|
#include "daemon/remote.h"
Go to the source code of this file.
Functions | |
| int | dump_cache (RES *ssl, struct worker *worker) |
| int | load_cache (RES *ssl, struct worker *worker) |
| int | print_deleg_lookup (RES *ssl, struct worker *worker, uint8_t *nm, size_t nmlen, int nmlabs) |
This file contains functions to read and write the cache(s) to text format.
The format of the file is as follows: [RRset cache] [Message cache] EOF – fixed string "EOF" before end of the file.
The RRset cache is: START_RRSET_CACHE [rrset]* END_RRSET_CACHE
rrset is: ;rrset [nsec_apex] TTL rr_count rrsig_count trust security resource records, one per line, in zonefile format rrsig records, one per line, in zonefile format If the text conversion fails, BADRR is printed on the line.
The Message cache is: START_MSG_CACHE [msg]* END_MSG_CACHE
msg is: msg name class type flags qdcount ttl security an ns ar list of rrset references, one per line. If conversion fails, BADREF reference is: name class type flags
Expired cache entries are not printed.
Definition in file cachedump.h.
Dump cache(s) to text
| ssl | to print to |
| worker | worker that is available (buffers, etc) and has ptrs to the caches. |
Load cache(s) from text
| ssl | to read from |
| worker | worker that is available (buffers, etc) and has ptrs to the caches. |
| int print_deleg_lookup | ( | RES * | ssl, |
| struct worker * | worker, | ||
| uint8_t * | nm, | ||
| size_t | nmlen, | ||
| int | nmlabs | ||
| ) |
Print the delegation used to lookup for this name.
| ssl | to read from |
| worker | worker that is available (buffers, etc) and has ptrs to the caches. |
| nm | name to lookup |
| nmlen | length of name. |
| nmlabs | labels in name. |