Lines Matching refs:origin
62 static size_t prune_origin(const char *name, const char *origin);
66 const u_char **p, const char *origin,
86 * ns_sprintrr(handle, rr, name_ctx, origin, buf, buflen)
93 const char *name_ctx, const char *origin,
101 name_ctx, origin, buf, buflen);
108 * name_ctx, origin, buf, buflen)
117 const char *name_ctx, const char *origin,
134 len = prune_origin(name, origin);
141 /* Origin not used or not root, and no trailing dot? */
142 if (((origin == NULL || origin[0] == '\0') ||
143 (origin[0] != '.' && origin[1] != '\0' &&
180 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
207 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
211 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
281 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
299 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
303 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
387 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
406 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
413 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
417 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
545 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
572 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
634 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
663 T(len = addname(msg, msglen, &rdata, origin, &buf, &buflen));
703 T(addname(msg, msglen, &rdata, origin, &buf, &buflen));
757 * prune_origin(name, origin)
758 * Find out if the name is at or under the current origin.
760 * Number of characters in name before start of origin,
761 * or length of name if origin does not match.
766 prune_origin(const char *name, const char *origin) {
770 if (origin != NULL && ns_samename(name, origin) == 1)
835 const u_char **pp, const char *origin,
845 newlen = prune_origin(*buf, origin);
855 if (((origin == NULL || origin[0] == '\0') ||
856 (origin[0] != '.' && origin[1] != '\0' &&