Lines Matching defs:class
105 * find enclosing zone for a <dname,class>, and some server addresses
110 *\li class - class of dname (and its enclosing zone)
126 *\li we start by asking for an SOA<dname,class>. if we get one as an
127 * answer, that just means <dname,class> is a zone top, which is fine.
160 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
174 result = res_findzonecut2(statp, dname, class, opts, zname, zsize,
186 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts,
195 DPRINTF(("START dname='%s' class=%s, zsize=%ld, naddrs=%d",
196 dname, p_class(class), (long)zsize, naddrs));
204 if ((n = get_soa(statp, dname, class, opts, zname, zsize,
211 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 ||
217 if ((n = get_glue(statp, class, opts, &nsrrs)) >= 0)
276 get_soa(res_state statp, const char *dname, ns_class class, int opts,
307 n = do_query(statp, dname, class, ns_t_soa, resp, &msg);
310 dname, p_class(class), n));
341 ns_rr_class(rr) != class)
385 zname, class, opts, nsrrsp) < 0) {
416 get_ns(res_state statp, const char *zname, ns_class class, int opts,
428 n = do_query(statp, zname, class, ns_t_ns, resp, &msg);
431 zname, p_class(class), n));
437 if (save_ns(statp, &msg, ns_s_an, zname, class, opts, nsrrsp) < 0) {
439 zname, p_class(class)));
449 get_glue(res_state statp, ns_class class, int opts, rrset_ns *nsrrsp) {
465 n = do_query(statp, nsrr->name, class, ns_t_a,
470 nsrr->name, p_class(class)));
476 nsrr->name, p_class(class)));
478 if (save_a(statp, &msg, ns_s_an, nsrr->name, class,
481 nsrr->name, p_class(class)));
487 n = do_query(statp, nsrr->name, class, ns_t_aaaa,
492 nsrr->name, p_class(class)));
498 nsrr->name, p_class(class)));
500 if (save_a(statp, &msg, ns_s_an, nsrr->name, class,
503 nsrr->name, p_class(class)));
525 const char *owner, ns_class class, int opts,
542 ns_rr_class(rr) != class ||
573 nsrr->name, class, opts, nsrr) < 0) {
575 nsrr->name, p_class(class)));
584 const char *owner, ns_class class, int opts,
600 ns_rr_class(rr) != class ||
677 do_query(res_state statp, const char *dname, ns_class class, ns_type qtype,
683 n = res_nmkquery(statp, ns_o_query, dname, class, qtype,
711 n += (ns_rr_class(rr) == class &&