void adns_cancel(struct DNSContext *ctx, struct DNSToken *tk);
+const char *adns_get_backend(void);
+
#ifdef USE_GETADDRINFO_A
+const char *adns_get_backend(void)
+{
+#ifdef HAVE_GETADDRINFO_A
+ return "libc"
+#ifdef __GLIBC__
+ "-" STR(__GLIBC__) "." STR(__GLIBC_MINOR__);
+#endif
+ ;
+#else
+ return "compat";
+#endif
+}
+
/*
* ADNS with glibc's getaddrinfo_a()
*/
#ifdef USE_LIBEVENT2
+const char *adns_get_backend(void)
+{
+ return "evdns2";
+}
+
/*
* ADNS with libevent2 <event2/dns.h>
*/
#ifdef USE_LIBEVENT1
+const char *adns_get_backend(void)
+{
+ return "evdns1";
+}
+
/*
* ADNS with libevent 1.x <evdns.h>
*/
write_pidfile();
- log_info("process up: %s, libevent %s (%s)", PACKAGE_STRING, event_get_version(), event_get_method());
+ log_info("process up: %s, libevent %s (%s), adns: %s", PACKAGE_STRING,
+ event_get_version(), event_get_method(), adns_get_backend());
/* main loop */
while (cf_shutdown < 2)