1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <event2/dns.h> #include <event2/util.h> #include <event2/event.h> int ggsniff_dns_init(struct event_base *ev_base) { return 1; } void ggsniff_dns_shutdown(void) { } int ggsniff_resolv(char *name, void (*cb)(char *name, char *ip)) { return -1; }