|
Electroneum
|
Go to the source code of this file.
Functions | |
| int | scrub_message (struct sldns_buffer *pkt, struct msg_parse *msg, struct query_info *qinfo, uint8_t *zonename, struct regional *regional, struct module_env *env, struct iter_env *ie) |
This file has routine(s) for cleaning up incoming DNS messages from possible useless or malicious junk in it.
Definition in file iter_scrub.h.
| int scrub_message | ( | struct sldns_buffer * | pkt, |
| struct msg_parse * | msg, | ||
| struct query_info * | qinfo, | ||
| uint8_t * | zonename, | ||
| struct regional * | regional, | ||
| struct module_env * | env, | ||
| struct iter_env * | ie | ||
| ) |
Cleanup the passed dns message.
| pkt | the packet itself, for resolving name compression pointers. the packet buffer is unaltered. |
| msg | the parsed packet, this structure is cleaned up. |
| qinfo | the query info that was sent to the server. Checked. |
| zonename | the name of the last delegation point. Used to determine out of bailiwick information. |
| regional | where to allocate (new) parts of the message. |
| env | module environment with config settings and cache. |
| ie | iterator module environment data. |