Home
last modified time | relevance | path

Searched refs:label_size (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/net/lib/dns_sd/src/
Dmain.c29 extern bool label_is_valid(const char *label, size_t label_size);
93 uint8_t label_size; in create_query() local
108 label_size = strlen(inst->service); in create_query()
109 create_query_buf[offs++] = label_size; in create_query()
110 memcpy(&create_query_buf[offs], inst->service, label_size); in create_query()
111 offs += label_size; in create_query()
113 label_size = strlen(inst->proto); in create_query()
114 create_query_buf[offs++] = label_size; in create_query()
115 memcpy(&create_query_buf[offs], inst->proto, label_size); in create_query()
116 offs += label_size; in create_query()
[all …]
/Zephyr-latest/subsys/net/lib/dns/
Ddns_sd.c33 static bool label_is_valid(const char *label, size_t label_size);
101 bool label_is_valid(const char *label, size_t label_size) in label_is_valid() argument
110 if (label_size == 0) { in label_is_valid()
112 label_size = strlen(label); in label_is_valid()
115 if (label_size < DNS_LABEL_MIN_SIZE || in label_is_valid()
116 label_size > DNS_LABEL_MAX_SIZE) { in label_is_valid()
118 label_size, in label_is_valid()
124 for (i = 0; i < label_size; ++i) { in label_is_valid()
361 size_t label_size; in add_ptr_record() local
429 label_size = strlen(labels[i]); in add_ptr_record()
[all …]