22 #define DNS_WRAPPER_PORT 53
23 #define MAX_DNS_PKT_SZ 512
28 char *answer,
unsigned *answer_length,
29 int (*callback)(
const char *name, uint32_t *ip));
int sk
Definition: dns_wrapper.h:39
char * rpkt
Definition: dns_wrapper.h:36
void * dns_wrapper_thread(void *null)
Definition: dns_wrapper.c:170
Definition: dns_wrapper.h:34
struct sockaddr from
Definition: dns_wrapper.h:40
void resolver_process(const char *question, unsigned question_length, char *answer, unsigned *answer_length, int(*callback)(const char *name, uint32_t *ip))
pthread_mutex_t dns_exec_lock
Definition: dns_wrapper.h:44
unsigned int socklen_t
Definition: libip4tc.c:26
socklen_t from_len
Definition: dns_wrapper.h:41
ssize_t rpkt_sz
Definition: dns_wrapper.h:37