summaryrefslogtreecommitdiff
path: root/src/network/__dns.h
blob: 9a3f7402a13f43eb65d202c1215bbf8f36ddcbdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stddef.h>

#define RR_A 1
#define RR_CNAME 5
#define RR_PTR 12
#define RR_AAAA 28

int __dns_count_addrs(const unsigned char *, int);
int __dns_get_rr(void *, size_t, size_t, size_t, const unsigned char *, int, int);

int __dns_query(unsigned char *, const void *, int, int);
int __ipparse(void *, int, const char *);

int __dns_doqueries(unsigned char *, const char *, int *, int);