Declarations useful for the unit tests. More...
#include "config.h"
#include <ctype.h>
#include "testcode/readhex.h"
#include "util/log.h"
#include "sldns/sbuffer.h"
#include "sldns/parseutil.h"
Functions | |
static void | skip_whites (const char **p) |
skip whitespace | |
void | hex_to_buf (sldns_buffer *pkt, const char *hex) |
Helper to convert hex string to packet buffer. More... | |
Declarations useful for the unit tests.
void hex_to_buf | ( | struct sldns_buffer * | pkt, |
const char * | hex | ||
) |
Helper to convert hex string to packet buffer.
pkt | buffer to put result in. |
hex | string of hex data. Spaces and ';...' comments are skipped. |
References skip_whites(), sldns_buffer_clear(), sldns_buffer_limit(), and sldns_buffer_position().
Referenced by perftestpkt(), read_input(), and testpkt().