- Timestamp:
- Mar 10, 2014, 12:11:56 PM (11 years ago)
- Branches:
- master
- Children:
- 7882a6f
- Parents:
- b6c9dd3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dns.c
rb6c9dd3 re80f9fc 37 37 38 38 struct async_event; 39 struct async_event * 40 async_run_event(struct async *, 41 void (*)(int, struct async_res *, void *), void *); 42 void dns_done(int, struct async_res *, void *); 39 struct async_event *async_run_event(struct async *, 40 void (*)(int, struct async_res *, void *), void *); 41 void dns_done(int, struct async_res *, void *); 43 42 44 43 extern int dodns; … … 50 49 51 50 if (ar->ar_gai_errno == 0) { 52 syslog(LOG_DEBUG, "dns resolved %s to %s", is->host,51 icbd_log(is, LOG_DEBUG, "dns resolved %s to %s", is->host, 53 52 is->hostname); 54 53 if (strncmp(is->hostname, "localhost", … … 58 57 strlcpy(is->host, is->hostname, ICB_MAXHOSTLEN); 59 58 } else 60 syslog(LOG_WARNING, "dns resolution failed: %s",59 icbd_log(is, LOG_WARNING, "dns resolution failed: %s", 61 60 gai_strerror(ar->ar_gai_errno)); 62 61 } … … 71 70 72 71 if (verbose) 73 syslog(LOG_DEBUG, "resolving: %s", is->host);72 icbd_log(is, LOG_DEBUG, "resolving: %s", is->host); 74 73 75 74 as = getnameinfo_async(sa, sa->sa_len, is->hostname,
Note:
See TracChangeset
for help on using the changeset viewer.