Changeset View
Changeset View
Standalone View
Standalone View
src/seeder/dns.h
Show All 12 Lines | |||||
typedef struct { | typedef struct { | ||||
int port; | int port; | ||||
int datattl; | int datattl; | ||||
int nsttl; | int nsttl; | ||||
const char *host; | const char *host; | ||||
const char *ns; | const char *ns; | ||||
const char *mbox; | const char *mbox; | ||||
int (*cb)(void *opt, char *requested_hostname, addr_t *addr, int max, | uint32_t (*cb)(void *opt, char *requested_hostname, addr_t *addr, | ||||
int ipv4, int ipv6); | uint32_t max, uint32_t ipv4, uint32_t ipv6); | ||||
// stats | // stats | ||||
uint64_t nRequests; | uint64_t nRequests; | ||||
} dns_opt_t; | } dns_opt_t; | ||||
extern int dnsserver(dns_opt_t *opt); | extern int dnsserver(dns_opt_t *opt); | ||||
#endif | #endif |