Declarations useful for the unit tests. More...
#include <ldns/buffer.h>Functions | |
| void | hex_to_buf (ldns_buffer *pkt, const char *hex) |
| Helper to convert hex string to packet buffer. | |
Declarations useful for the unit tests.
| void hex_to_buf | ( | ldns_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(), fatal_exit(), and log_assert.
Referenced by read_input(), perftestpkt(), and testpkt().