|
sdns
low-level DNS library
|
#include <sdns.h>

Public Attributes | |
| sdns_message * | msg |
| This is the DNS packet. | |
| char * | raw |
| The raw bytes we received from socket. | |
| uint16_t | raw_len |
| Length of the raw data we received from socket. | |
| char * | cursor |
| This cursor keeps the position of the pointer in raw data. | |
| int | err |
| This shows the last error code after any operation on the context. | |
The main structure of library.
This is structure is used to parse a sequence of bytes to a DNS packet and vice versa. raw_len and cursor are used internally and should not be used by callers.