Lines Matching refs:source

202 str_totext(const char *source, isc_buffer_t *target) {  in str_totext()  argument
207 l = strlen(source); in str_totext()
213 memmove(region.base, source, l); in str_totext()
219 maybe_numeric(unsigned int *valuep, isc_textregion_t *source, unsigned int max, in maybe_numeric() argument
226 if (!isdigit((unsigned char)source->base[0]) || in maybe_numeric()
227 source->length > NUMBERSIZE - 1) in maybe_numeric()
237 v = snprintf(buffer, sizeof(buffer), "%.*s", (int)source->length, in maybe_numeric()
238 source->base); in maybe_numeric()
239 if (v < 0 || (unsigned)v != source->length) { in maybe_numeric()
242 INSIST(buffer[source->length] == '\0'); in maybe_numeric()
259 dns_mnemonic_fromtext(unsigned int *valuep, isc_textregion_t *source, in dns_mnemonic_fromtext() argument
264 result = maybe_numeric(valuep, source, max, false); in dns_mnemonic_fromtext()
272 if (n == source->length && (table[i].flags & TOTEXTONLY) == 0 && in dns_mnemonic_fromtext()
273 strncasecmp(source->base, table[i].name, n) == 0) in dns_mnemonic_fromtext()
298 dns_rcode_fromtext(dns_rcode_t *rcodep, isc_textregion_t *source) { in dns_rcode_fromtext() argument
300 RETERR(dns_mnemonic_fromtext(&value, source, rcodes, 0xffff)); in dns_rcode_fromtext()
311 dns_tsigrcode_fromtext(dns_rcode_t *rcodep, isc_textregion_t *source) { in dns_tsigrcode_fromtext() argument
313 RETERR(dns_mnemonic_fromtext(&value, source, tsigrcodes, 0xffff)); in dns_tsigrcode_fromtext()
324 dns_cert_fromtext(dns_cert_t *certp, isc_textregion_t *source) { in dns_cert_fromtext() argument
326 RETERR(dns_mnemonic_fromtext(&value, source, certs, 0xffff)); in dns_cert_fromtext()
337 dns_secalg_fromtext(dns_secalg_t *secalgp, isc_textregion_t *source) { in dns_secalg_fromtext() argument
339 RETERR(dns_mnemonic_fromtext(&value, source, secalgs, 0xff)); in dns_secalg_fromtext()
366 dns_secproto_fromtext(dns_secproto_t *secprotop, isc_textregion_t *source) { in dns_secproto_fromtext() argument
368 RETERR(dns_mnemonic_fromtext(&value, source, secprotos, 0xff)); in dns_secproto_fromtext()
379 dns_hashalg_fromtext(unsigned char *hashalg, isc_textregion_t *source) { in dns_hashalg_fromtext() argument
381 RETERR(dns_mnemonic_fromtext(&value, source, hashalgs, 0xff)); in dns_hashalg_fromtext()
387 dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source) { in dns_keyflags_fromtext() argument
395 result = maybe_numeric(&value, source, 0xffff, true); in dns_keyflags_fromtext()
404 text = source->base; in dns_keyflags_fromtext()
405 end = source->base + source->length; in dns_keyflags_fromtext()
441 dns_dsdigest_fromtext(dns_dsdigest_t *dsdigestp, isc_textregion_t *source) { in dns_dsdigest_fromtext() argument
443 RETERR(dns_mnemonic_fromtext(&value, source, dsdigests, 0xff)); in dns_dsdigest_fromtext()
474 dns_rdataclass_fromtext(dns_rdataclass_t *classp, isc_textregion_t *source) { in dns_rdataclass_fromtext() argument
476 if (((sizeof(string) - 1) == source->length) && \ in dns_rdataclass_fromtext()
477 (strncasecmp(source->base, string, source->length) == 0)) \ in dns_rdataclass_fromtext()
483 switch (tolower((unsigned char)source->base[0])) { in dns_rdataclass_fromtext()
496 if (source->length > 5 && in dns_rdataclass_fromtext()
497 source->length < (5 + sizeof("65000")) && in dns_rdataclass_fromtext()
498 strncasecmp("class", source->base, 5) == 0) in dns_rdataclass_fromtext()
509 (int)(source->length - 5), source->base + 5); in dns_rdataclass_fromtext()