/freebsd/contrib/ntp/sntp/libopts/ |
H A D | nested.c | 140 add_string(void ** pp, char const * name, size_t nm_len, in add_string() argument 144 size_t sz = nm_len + d_len + sizeof(*pNV); in add_string() 175 memcpy(pNV->pzName, name, nm_len); in add_string() 176 pNV->pzName[ nm_len ] = NUL; in add_string() 193 add_bool(void ** pp, char const * name, size_t nm_len, in add_bool() argument 196 size_t sz = nm_len + sizeof(tOptionValue) + 1; in add_bool() 216 memcpy(new_val->pzName, name, nm_len); in add_bool() 217 new_val->pzName[ nm_len ] = NUL; in add_bool() 234 add_number(void ** pp, char const * name, size_t nm_len, in add_number() argument 237 size_t sz = nm_len + sizeof(tOptionValue) + 1; in add_number() [all …]
|
H A D | find.c | 70 opt_ambiguities(tOptions * opts, char const * name, int nm_len) in opt_ambiguities() argument 83 if (strneqvcmp(name, pOD->pz_Name, nm_len) == 0) in opt_ambiguities() 87 && (strneqvcmp(name, pOD->pz_DisableName, nm_len) == 0) in opt_ambiguities() 104 opt_match_ct(tOptions * opts, char const * name, int nm_len, in opt_match_ct() argument 123 if (strneqvcmp(name, pOD->pz_Name, nm_len) == 0) { in opt_match_ct() 128 if (pOD->pz_Name[ nm_len ] == NUL) { in opt_match_ct() 140 && (strneqvcmp(name, pOD->pz_DisableName, nm_len) == 0) in opt_match_ct() 148 if (pOD->pz_DisableName[ nm_len ] == NUL) { in opt_match_ct() 345 int nm_len = parse_opt(&opt_name, &opt_arg, name_buf, sizeof(name_buf)); in opt_find_long() local 351 if (nm_len <= 1) { in opt_find_long() [all …]
|
H A D | proto.h | 168 opt_ambiguities(tOptions * opts, char const * name, int nm_len); 171 opt_match_ct(tOptions * opts, char const * name, int nm_len, 308 add_string(void ** pp, char const * name, size_t nm_len, 312 add_bool(void ** pp, char const * name, size_t nm_len, 316 add_number(void ** pp, char const * name, size_t nm_len, 320 add_nested(void ** pp, char const * name, size_t nm_len, 330 scan_xml_name(char const * name, size_t * nm_len, tOptionValue * val); 333 find_end_xml(char const * src, size_t nm_len, char const * val, size_t * len); 345 optionLoadNested(char const * text, char const * name, size_t nm_len);
|
H A D | configfile.c | 721 unsigned short nm_len; in parse_xml_encoding() member 773 if (strncmp(pz, xml_names[ix].nm_str, xml_names[ix].nm_len) in parse_xml_encoding() 775 *ppz = pz + xml_names[ix].nm_len; in parse_xml_encoding() 792 size_t nm_len = strlen(pznm); in trim_xml_text() local 798 if (nm_len + 4 >= sizeof(z)) in trim_xml_text() 799 pz = AGALOC(nm_len + 4, "scan name"); in trim_xml_text() 803 memcpy(pz+2, pznm, nm_len); in trim_xml_text() 804 nm_len += 2; in trim_xml_text() 805 pz[nm_len++] = '>'; in trim_xml_text() 806 pz[nm_len] = NUL; in trim_xml_text() [all …]
|
H A D | load.c | 278 size_t nm_len = strlen(name) + 1; in add_env_val() local 280 if (dir_len + nm_len >= (unsigned)buf_sz) in add_env_val() 283 memcpy(buf + dir_len, name, nm_len); in add_env_val()
|
/freebsd/contrib/unbound/edns-subnet/ |
H A D | subnet-whitelist.c | 137 size_t nm_len; in read_names() local 142 nm = sldns_str2wire_dname(p->str, &nm_len); in read_names() 147 nm_labs = dname_count_size_labels(nm, &nm_len); in read_names() 149 nm_len); in read_names() 161 if(!name_tree_insert(&whitelist->dname, n, nmr, nm_len, nm_labs, in read_names()
|
/freebsd/contrib/unbound/iterator/ |
H A D | iter_priv.c | 115 size_t nm_len; in read_names() local 120 nm = sldns_str2wire_dname(p->str, &nm_len); in read_names() 125 nm_labs = dname_count_size_labels(nm, &nm_len); in read_names() 126 nmr = (uint8_t*)regional_alloc_init(priv->region, nm, nm_len); in read_names() 138 if(!name_tree_insert(&priv->n, n, nmr, nm_len, nm_labs, in read_names()
|
/freebsd/contrib/unbound/validator/ |
H A D | val_neg.c | 371 uint8_t* nm, size_t nm_len, int labs, uint16_t qclass) in neg_closest_zone_parent() argument 378 key.len = nm_len; in neg_closest_zone_parent() 411 struct val_neg_zone* zone, uint8_t* nm, size_t nm_len, int labs) in neg_closest_data_parent() argument 418 key.len = nm_len; in neg_closest_data_parent() 450 uint8_t* nm, size_t nm_len, int labs, uint16_t dclass) in neg_setup_zone_node() argument 458 zone->name = memdup(nm, nm_len); in neg_setup_zone_node() 463 zone->len = nm_len; in neg_setup_zone_node() 483 uint8_t* nm, size_t nm_len, int labs, uint16_t dclass, in neg_zone_chain() argument 494 zone = neg_setup_zone_node(nm, nm_len, i, dclass); in neg_zone_chain() 513 dname_remove_label(&nm, &nm_len); in neg_zone_chain() [all …]
|
H A D | val_neg.h | 293 uint8_t* nm, size_t nm_len, uint16_t dclass);
|
/freebsd/contrib/unbound/dns64/ |
H A D | dns64.c | 228 ipv4_to_ptr(uint32_t ipv4, char ptr[], size_t nm_len) in ipv4_to_ptr() argument 233 log_assert(nm_len == MAX_PTR_QNAME_IPV4); (void)nm_len; in ipv4_to_ptr() 238 log_assert(c < ptr+nm_len); in ipv4_to_ptr() 242 log_assert(c + sizeof(IPV4_PTR_SUFFIX) <= ptr+nm_len); in ipv4_to_ptr()
|