• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/libevent/

Lines Matching refs:nameserver

179 	struct nameserver *ns;	/* the server which we last sent it */
217 struct nameserver {
225 struct nameserver *next, *prev;
229 /* Outstanding probe request for this nameserver, if any */
313 struct nameserver *server_head;
338 /* The first time that a nameserver fails, how long do we wait before
392 static struct nameserver *nameserver_pick(struct evdns_base *base);
398 static void nameserver_send_probe(struct nameserver *const ns);
485 /* a libevent callback function which is called when a nameserver */
489 struct nameserver *const ns = (struct nameserver *) arg;
498 /* a libevent callback which is called when a nameserver probe (to see if */
502 nameserver_probe_failed(struct nameserver *const ns) {
509 /* This can happen if the nameserver acts in a way which makes us mark */
545 request_swap_ns(struct request *req, struct nameserver *ns) {
555 /* called when a nameserver has been deemed to have failed. For example, too */
558 nameserver_failed(struct nameserver *const ns, const char *msg) {
565 /* if this nameserver has already been marked as failed */
596 /* nameserver assigned yet */
618 nameserver_up(struct nameserver *const ns)
716 const struct nameserver *const last_ns = req->ns;
719 /* the last nameserver should have been marked as failing */
899 /* we regard these errors as marking a bad nameserver */
914 log(EVDNS_LOG_DEBUG, "Got a SERVERFAILED from nameserver"
923 /* we got a good reply from the nameserver: it is up. */
1015 /* parses a raw request from a nameserver */
1212 /* Parse a raw request (packet,length) sent to a nameserver port (port) from */
1334 static struct nameserver *
1336 struct nameserver *started_at = base->server_head, *picked;
1371 nameserver_read(struct nameserver *ns) {
1472 nameserver_write_waiting(struct nameserver *ns, char waiting) {
1492 /* a nameserver socket is ready for writing or reading */
1495 struct nameserver *ns = (struct nameserver *) arg;
2172 struct nameserver *ns = req->ns;
2205 evdns_request_transmit_to(struct request *req, struct nameserver *server) {
2275 "Setting timeout for request %p, sent to nameserver %p", req, req->ns);
2290 struct nameserver *const ns = (struct nameserver *) arg;
2297 /* We canceled this request because the nameserver came up
2299 * the nameserver. */
2315 nameserver_send_probe(struct nameserver *const ns) {
2319 /* here we need to send a probe to a given nameserver */
2372 const struct nameserver *server;
2398 struct nameserver *server, *started_at;
2409 struct nameserver *next = server->next;
2486 /* first check to see if we already have this nameserver */
2488 const struct nameserver *server = base->server_head, *const started_at = base->server_head;
2489 struct nameserver *ns;
2505 ns = (struct nameserver *) mm_malloc(sizeof(struct nameserver));
2508 memset(ns, 0, sizeof(struct nameserver));
2538 log(EVDNS_LOG_DEBUG, "Added nameserver %s as %p",
2541 /* insert this nameserver into the list of them */
2561 log(EVDNS_LOG_WARN, "Unable to add nameserver %s: error %d",
2620 log(EVDNS_LOG_WARN, "Unable to parse nameserver address %s",
2659 struct nameserver *server;
2829 /* if it has a nameserver assigned then this is going */
3538 if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) {
3539 const char *const nameserver = NEXT_TOKEN;
3541 if (nameserver)
3542 evdns_base_nameserver_ip_add(base, nameserver);
3751 log(EVDNS_LOG_DEBUG,"Could not add nameserver %s to list,error: %d",
3756 log(EVDNS_LOG_DEBUG,"Successfully added %s as nameserver",ns->IpAddress.String);
4012 evdns_nameserver_free(struct nameserver *server)
4031 struct nameserver *server, *server_next;