Home | History | Annotate | Download | only in dist

Lines Matching refs:nameserver

184 	struct nameserver *ns;	/* the server which we last sent it */
222 struct nameserver {
230 struct nameserver *next, *prev;
234 /* Outstanding probe request for this nameserver, if any */
318 struct nameserver *server_head;
343 /* The first time that a nameserver fails, how long do we wait before
400 static struct nameserver *nameserver_pick(struct evdns_base *base);
406 static void nameserver_send_probe(struct nameserver *const ns);
493 /* a libevent callback function which is called when a nameserver */
497 nameserver *const ns = (struct nameserver *) arg;
506 /* a libevent callback which is called when a nameserver probe (to see if */
510 nameserver_probe_failed(struct nameserver *const ns) {
517 /* This can happen if the nameserver acts in a way which makes us mark */
553 request_swap_ns(struct request *req, struct nameserver *ns) {
563 /* called when a nameserver has been deemed to have failed. For example, too */
566 nameserver_failed(struct nameserver *const ns, const char *msg) {
573 /* if this nameserver has already been marked as failed */
577 log(EVDNS_LOG_MSG, "Nameserver %s has failed: %s",
604 /* nameserver assigned yet */
626 nameserver_up(struct nameserver *const ns)
631 log(EVDNS_LOG_MSG, "Nameserver %s is back up",
724 const struct nameserver *const last_ns = req->ns;
727 /* the last nameserver should have been marked as failing */
920 /* we regard these errors as marking a bad nameserver */
935 log(EVDNS_LOG_DEBUG, "Got a SERVERFAILED from nameserver"
944 /* we got a good reply from the nameserver: it is up. */
1036 /* parses a raw request from a nameserver */
1233 /* Parse a raw request (packet,length) sent to a nameserver port (port) from */
1353 static struct nameserver *
1355 struct nameserver *started_at = base->server_head, *picked;
1390 nameserver_read(struct nameserver *ns) {
1491 nameserver_write_waiting(struct nameserver *ns, char waiting) {
1511 /* a nameserver socket is ready for writing or reading */
1514 struct nameserver *ns = (struct nameserver *) arg;
2192 struct nameserver *ns = req->ns;
2225 evdns_request_transmit_to(struct request *req, struct nameserver *server) {
2296 "Setting timeout for request %p, sent to nameserver %p", req, req->ns);
2311 struct nameserver *const ns = (struct nameserver *) arg;
2318 /* We canceled this request because the nameserver came up
2320 * the nameserver. */
2336 nameserver_send_probe(struct nameserver *const ns) {
2340 /* here we need to send a probe to a given nameserver */
2393 const struct nameserver *server;
2419 struct nameserver *server, *started_at;
2430 struct nameserver *next = server->next;
2507 /* first check to see if we already have this nameserver */
2509 const struct nameserver *server = base->server_head, *const started_at = base->server_head;
2510 struct nameserver *ns;
2526 ns = (struct nameserver *) mm_malloc(sizeof(struct nameserver));
2529 memset(ns, 0, sizeof(struct nameserver));
2576 log(EVDNS_LOG_DEBUG, "Added nameserver %s as %p",
2579 /* insert this nameserver into the list of them */
2599 log(EVDNS_LOG_WARN, "Unable to add nameserver %s: error %d",
2658 log(EVDNS_LOG_WARN, "Unable to parse nameserver address %s",
2697 struct nameserver *server;
2867 /* if it has a nameserver assigned then this is going */
3595 if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) {
3596 const char *const nameserver = NEXT_TOKEN;
3598 if (nameserver)
3599 evdns_base_nameserver_ip_add(base, nameserver);
3818 log(EVDNS_LOG_DEBUG,"Could not add nameserver %s to list,error: %d",
3823 log(EVDNS_LOG_DEBUG,"Successfully added %s as nameserver",ns->IpAddress.String);
3903 TRY(nt_key, "NameServer");
3905 TRY(interfaces_key, "NameServer");
3916 TRY(win_key, "NameServer");
4089 evdns_nameserver_free(struct nameserver *server)
4108 struct nameserver *server, *server_next;