Home
last modified time | relevance | path

Searched refs:token_length (Results 1 – 25 of 29) sorted by relevance

12

/third_party/libcoap/src/
Dpdu.c46 pdu->token_length = 0; in coap_pdu_clear()
157 size_t token_length, in coap_pdu_duplicate() argument
168 coap_add_token(pdu, token_length, token); in coap_pdu_duplicate()
173 size_t length = old_pdu->used_size - old_pdu->token_length - in coap_pdu_duplicate()
179 memcpy(pdu->token + pdu->token_length, in coap_pdu_duplicate()
180 old_pdu->token + old_pdu->token_length, length); in coap_pdu_duplicate()
270 pdu->token_length = (uint8_t)len; in coap_add_token()
290 if (len == pdu->token_length) { in coap_update_token()
293 else if (len > pdu->token_length) { in coap_update_token()
294 if (!coap_pdu_check_resize(pdu, pdu->used_size + len - pdu->token_length)) in coap_update_token()
[all …]
Dblock.c378 if (full_match(pdu->token, pdu->token_length, in coap_add_data_large_internal()
413 avail -= (pdu->token_length <= 8) ? pdu->token_length <= 8 : 0; in coap_add_data_large_internal()
481 lg_xmit->b.b1.app_token = coap_new_binary(pdu->token_length); in coap_add_data_large_internal()
484 memcpy(lg_xmit->b.b1.app_token->s, pdu->token, pdu->token_length); in coap_add_data_large_internal()
492 lg_xmit->b.b1.token_length = coap_encode_var_safe8(lg_xmit->b.b1.token, in coap_add_data_large_internal()
570 avail -= (pdu->token_length <= 8) ? pdu->token_length <= 8 : 0; in coap_add_data_large_internal()
838 assert(pdu->token_length <= 8); in coap_block_new_lg_crcv()
839 lg_crcv->token_length = min(pdu->token_length, 8); in coap_block_new_lg_crcv()
841 memcpy(lg_crcv->token, pdu->token, lg_crcv->token_length); in coap_block_new_lg_crcv()
845 memcpy(lg_crcv->base_token, pdu->token, lg_crcv->token_length); in coap_block_new_lg_crcv()
[all …]
Dasync.c50 pdu->token_length, request->token_length, in coap_register_async()
68 s->pdu = coap_pdu_duplicate(request, session, request->token_length, in coap_register_async()
113 pdu->token_length, token.length, in coap_find_async()
Dresource.c119 size_t token_length; in match() local
124 token_length = next_token - token; in match()
125 remaining_length -= (token_length + 1); in match()
128 token_length = remaining_length; in match()
132 if ((match_prefix || pattern->length == token_length) && in match()
695 && (!token || (token->length == s->pdu->token_length
749 coap_binary_t tmp_token = { s->pdu->token_length, s->pdu->token };
769 s->pdu = coap_pdu_duplicate(request, session, request->token_length,
825 for ( i = 0; i < s->pdu->token_length; i++ )
903 if (!coap_add_token(response, obs->pdu->token_length, obs->pdu->token)) {
[all …]
Dnet.c1095 if (token_match(pdu->token, pdu->token_length, in coap_send()
1104 lg_crcv->token_length = lg_crcv->base_token_length; in coap_send()
1128 token_match(pdu->token, pdu->token_length, in coap_send()
1132 coap_update_token(pdu, session->lg_xmit->b.b1.token_length, in coap_send()
1392 token.length = node->pdu->token_length; in coap_retransmit()
2016 const uint8_t *token, size_t token_length) { in coap_cancel_all_messages() argument
2022 token_match(token, token_length, in coap_cancel_all_messages()
2024 context->sendqueue->pdu->token_length)) { in coap_cancel_all_messages()
2041 token_match(token, token_length, in coap_cancel_all_messages()
2042 q->pdu->token, q->pdu->token_length)) { in coap_cancel_all_messages()
[all …]
Doption.c123 oi->next_option = pdu->token + pdu->token_length; in coap_option_iterator_init()
129 oi->length = pdu->used_size - pdu->token_length; in coap_option_iterator_init()
Dcoap_debug.c541 for (i = 0; i < pdu->token_length; i++) { in coap_show_pdu()
/third_party/libcoap/tests/
Dtest_error_response.c48 CU_ASSERT(response->token_length == 0); in t_error_response1()
78 CU_ASSERT(response->token_length == 5); in t_error_response2()
111 CU_ASSERT(response->token_length == 5); in t_error_response3()
150 CU_ASSERT(response->token_length == 5); in t_error_response4()
191 CU_ASSERT(response->token_length == 5); in t_error_response5()
232 CU_ASSERT(response->token_length == 5); in t_error_response6()
274 CU_ASSERT(response->token_length == 5); in t_error_response7()
315 CU_ASSERT(response->token_length == 5); in t_error_response8()
Dtest_uri.c336 .token_length = 0, in t_parse_uri13()
437 .token_length = 0, in t_parse_uri18()
462 .token_length = 0, in t_parse_uri19()
482 .token_length = 0, in t_parse_uri20()
503 .token_length = 0, in t_parse_uri21()
526 .token_length = 0, in t_parse_uri22()
547 .token_length = 0, in t_parse_uri23()
Dtest_options.c500 .token_length = 3, in t_iterate_option2()
527 .token_length = 3, in t_iterate_option3()
570 .token_length = 3, in t_iterate_option4()
612 .token_length = 0, in t_iterate_option5()
645 .token_length = 0, in t_iterate_option6()
690 .token_length = 0, in t_iterate_option7()
737 .token_length = 0, in t_iterate_option8()
768 .token_length = 0, in t_iterate_option9()
799 .token_length = 0, in t_iterate_option10()
Dtest_pdu.c35 CU_ASSERT(pdu->token_length == 0); in t_parse_pdu1()
51 CU_ASSERT(pdu->token_length == 5); in t_parse_pdu2()
96 CU_ASSERT(pdu->token_length == 5); in t_parse_pdu5()
131 CU_ASSERT(pdu->token_length == 5); in t_parse_pdu7()
156 CU_ASSERT(pdu->token_length == 0); in t_parse_pdu8()
198 CU_ASSERT(pdu->token_length == 0); in t_parse_pdu11()
214 CU_ASSERT(pdu->token_length == 0); in t_parse_pdu12()
/third_party/libcoap/include/coap3/
Dcoap_block_internal.h59 size_t token_length; /**< length of token */ member
117 size_t token_length; /**< length of token */ member
Dcoap_pdu_internal.h103 uint8_t token_length; /**< length of Token */ member
Dcoap_net_internal.h261 size_t token_length);
Dpdu.h401 size_t token_length,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_upnp_ssdp.c61 static int token_length(const char *s) in token_length() function
540 data += token_length(data); in ssdp_parse_msearch()
562 data += token_length(data); in ssdp_parse_msearch()
612 data += token_length(data); in ssdp_parse_msearch()
626 data += token_length(data); in ssdp_parse_msearch()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_upnp_ssdp.c61 static int token_length(const char *s) in token_length() function
540 data += token_length(data); in ssdp_parse_msearch()
562 data += token_length(data); in ssdp_parse_msearch()
612 data += token_length(data); in ssdp_parse_msearch()
626 data += token_length(data); in ssdp_parse_msearch()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcTextureFilterAnisotropicTests.cpp63 const size_t token_length = strlen(token); in replaceToken() local
68 str.replace(token_position, token_length, text, text_length); in replaceToken()
/third_party/libcoap/examples/
Dcoap-rd.c208 if (request->hdr->token_length) in hnd_put_resource()
209 coap_add_token(response, request->hdr->token_length, request->hdr->token); in hnd_put_resource()
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl3cGPUShader5Tests.cpp315 const size_t token_length = strlen(token); in replaceToken() local
318 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl4cStencilTexturingTests.cpp379 const size_t token_length = strlen(token); in replaceToken() local
392 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl4cGlSpirvTests.cpp121 const size_t token_length = strlen(token); in replaceToken() local
126 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl4cSparseTexture2Tests.cpp270 const size_t token_length = strlen(token); in replaceToken() local
275 string.replace(token_position, token_length, text, text_length); in replaceToken()
Dgl3cTextureSwizzleTests.cpp2153 const size_t token_length = strlen(token); in replaceToken() local
2156 string.replace(token_position, token_length, text, text_length); in replaceToken()
/third_party/libcoap/doc/
Dupgrade_4.2.1_4.3.0.txt265 return received->token_length == the_token.length &&

12