Pieter Wuille
13 years ago
3 changed files with 22 additions and 1 deletions
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
#ifndef _DNS_H_ |
||||
#define _DNS_H_ 1 |
||||
|
||||
#include <stdint.h> |
||||
|
||||
typedef struct { |
||||
int port; |
||||
int datattl; |
||||
int nsttl; |
||||
const char *host; |
||||
const char *ns; |
||||
const char *mbox; |
||||
int (*cb)(struct in_addr *addr, int max, int ipv4only); |
||||
// stats
|
||||
uint64_t nRequests; |
||||
} dns_opt_t; |
||||
|
||||
extern int dnsserver(dns_opt_t *opt); |
||||
|
||||
#endif |
Loading…
Reference in new issue