Home
last modified time | relevance | path

Searched refs:coap_opt_length (Results 1 – 23 of 23) sorted by relevance

/third_party/libcoap/include/coap3/
Dblock.h50 (coap_opt_length(opt) ? (coap_opt_value(opt) + (coap_opt_length(opt)-1)) : 0)
54 (coap_opt_length(opt) ? (*COAP_OPT_BLOCK_LAST(opt) & 0x08) : 0)
58 (coap_opt_length(opt) ? (*COAP_OPT_BLOCK_LAST(opt) & 0x07) : 0)
79 *(coap_opt_value(block_opt) + (coap_opt_length(block_opt) - 1)) |= 0x08;
81 *(coap_opt_value(block_opt) + (coap_opt_length(block_opt) - 1)) &= ~0x08;
Doption.h298 uint32_t coap_opt_length(const coap_opt_t *opt);
/third_party/libcoap/src/
Dcoap_debug.c567 coap_opt_length(option))); in coap_show_pdu()
578 coap_opt_length(option), in coap_show_pdu()
584 coap_opt_length(option))); in coap_show_pdu()
593 coap_opt_length(option))); in coap_show_pdu()
602 coap_opt_length(option)); in coap_show_pdu()
627 coap_opt_length(option))); in coap_show_pdu()
632 opt_len = coap_opt_length(option); in coap_show_pdu()
657 coap_opt_length(option), in coap_show_pdu()
Dblock.c22 len = coap_opt_length(block_opt); in coap_opt_block_num()
30 coap_opt_length(block_opt) - 1); in coap_opt_block_num()
984 coap_opt_length(etag_opt)); in coap_handle_request_send_block()
1086 coap_opt_length(option), in coap_handle_request_send_block()
1256 coap_opt_length(fmt_opt)) : in coap_handle_request_put_block()
1260 coap_opt_length(size_opt)) : 0; in coap_handle_request_put_block()
1301 p->observe_length = min(coap_opt_length(observe), 3); in coap_handle_request_put_block()
1643 coap_opt_length(size_opt)) : 0; in coap_handle_response_get_block()
1658 coap_opt_length(fmt_opt)) : in coap_handle_response_get_block()
1676 p->etag_length = coap_opt_length(etag_opt); in coap_handle_response_get_block()
[all …]
Duri.c568 uint16_t seg_len = coap_opt_length(q), i; in coap_get_query()
589 uint16_t seg_len = coap_opt_length(q), i; in coap_get_query()
618 uint16_t seg_len = coap_opt_length(q), i; in coap_get_uri_path()
644 uint16_t seg_len = coap_opt_length(q), i; in coap_get_uri_path()
Dresource.c198 while (resource_param.length < coap_opt_length(query_filter)
202 if (resource_param.length < coap_opt_length(query_filter)) {
220 assert((resource_param.length + 1) <= coap_opt_length(query_filter));
222 coap_opt_length(query_filter) - (resource_param.length + 1);
Dpdu.c194 coap_opt_length(option), in coap_pdu_duplicate()
402 coap_opt_length(option)); in coap_remove_option()
1007 optsize ? coap_opt_length((const uint8_t *)opt - optsize) : 0; in coap_pdu_parse_opt()
1053 optsize ? coap_opt_length((const uint8_t *)opt - optsize) : 0; in coap_pdu_parse_opt()
Dnet.c1078 coap_opt_length(opt)); in coap_send()
1198 coap_decode_var_bytes (coap_opt_value (opt), coap_opt_length (opt)); in coap_send_internal()
2120 size += coap_opt_length(option); in coap_new_error_response()
2150 coap_opt_length(option), in coap_new_error_response()
2423 val = coap_decode_var_bytes(coap_opt_value(nores), coap_opt_length(nores)); in no_response()
2571 coap_opt_length(opt), &uri) < 0) { in handle_request()
2582 uri.host.length = coap_opt_length(opt); in handle_request()
2611 coap_decode_var_bytes (coap_opt_value (opt), coap_opt_length (opt)); in handle_request()
2767 coap_opt_length(observe)); in handle_request()
2952 coap_opt_length(option))); in handle_signaling()
Doption.c214 coap_opt_length(const coap_opt_t *opt) { in coap_opt_length() function
/third_party/libcoap/examples/
Detsi_iot_01.c204 coap_decode_var_bytes(coap_opt_value(option), coap_opt_length(option)); in hnd_post_test()
215 coap_opt_length(buf), coap_opt_value(buf)); in hnd_post_test()
263 coap_decode_var_bytes(coap_opt_value(option), coap_opt_length(option)); in hnd_put_test()
326 L = min(sizeof(buf) - len, coap_opt_length(q)); in hnd_get_query()
369 for (i = 6; i < coap_opt_length(option); ++i) in hnd_get_separate()
Dcoap-server.c577 coap_opt_length (option)); in hnd_put_example_data()
668 int opt_len = coap_opt_length(opt); in get_uri_proxy_scheme_info()
699 uri->host.length = coap_opt_length(opt); in get_uri_proxy_scheme_info()
710 coap_opt_length (opt)); in get_uri_proxy_scheme_info()
1038 coap_opt_length(proxy_uri), in hnd_proxy_uri()
1041 coap_opt_length(proxy_uri), in hnd_proxy_uri()
1124 coap_opt_length(proxy_uri), in hnd_proxy_uri()
1148 coap_opt_length(buf), in hnd_proxy_uri()
1163 coap_opt_length(buf), in hnd_proxy_uri()
1189 coap_opt_length(option), in hnd_proxy_uri()
[all …]
Dcoap-rd.c393 rd->etag_len = min(coap_opt_length(etag), sizeof(rd->etag)); in make_rd()
542 coap_opt_length(b), in hnd_post_rd()
Dcoap-client.c696 coap_opt_length(buf), in cmdline_uri()
711 coap_opt_length(buf), in cmdline_uri()
/third_party/libcoap/man/
Dcoap_pdu_access.txt.in18 coap_opt_length,
46 *uint32_t coap_opt_length(const coap_opt_t *_opt_);*
242 The *coap_opt_length*() function returns the length of the option _opt_.
304 coap_opt_length(option));
311 opt_iter.number, coap_opt_length(option));
319 opt_iter.number, coap_opt_length(option));
Dcoap_block.txt.in232 coap_opt_length(sbuf), coap_opt_value(sbuf))))
245 coap_opt_length(sbuf), coap_opt_value(sbuf))))
Dcoap_pdu_setup.txt.in450 coap_opt_length(sbuf), coap_opt_value(sbuf))))
463 coap_opt_length(sbuf), coap_opt_value(sbuf))))
Dcoap_cache.txt.in329 coap_opt_length (option));
/third_party/libcoap/tests/
Dtest_options.c365 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 2); in t_access_option1()
378 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 2); in t_access_option2()
394 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 13); in t_access_option3()
407 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 65535); in t_access_option4()
420 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 490); in t_access_option5()
436 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 0); in t_access_option6()
449 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 0); in t_access_option7()
Dtest_pdu.c730 CU_ASSERT(coap_opt_length(option) == 1); in t_encode_pdu12()
765 CU_ASSERT(coap_opt_length(option) == 1); in t_encode_pdu13()
800 CU_ASSERT(coap_opt_length(option) == 1); in t_encode_pdu14()
835 CU_ASSERT(coap_opt_length(option) == 1); in t_encode_pdu15()
/third_party/libcoap/
Dlibcoap-3.map132 coap_opt_length;
Dlibcoap-3.sym130 coap_opt_length
DChangeLog250 * option.c (coap_opt_size, coap_opt_value, coap_opt_length):
/third_party/libcoap/examples/contiki/
Dcoap-observer.c160 coap_opt_length(buf), coap_opt_value(buf)); in PROCESS_THREAD()