Home
last modified time | relevance | path

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

/third_party/libcoap/include/coap3/
Dcoap_block.h80 (coap_opt_length(opt) ? (coap_opt_value(opt) + (coap_opt_length(opt)-1)) : 0)
84 ((coap_opt_length(opt) && coap_opt_value(opt)) ? \
85 *(coap_opt_value(opt) + (coap_opt_length(opt)-1)) : 0)
89 (coap_opt_length(opt) ? (COAP_OPT_BLOCK_END_BYTE(opt) & 0x08) : 0)
93 (coap_opt_length(opt) ? (COAP_OPT_BLOCK_END_BYTE(opt) & 0x07) : 0)
114 *(coap_opt_value(block_opt) + (coap_opt_length(block_opt) - 1)) |= 0x08;
116 *(coap_opt_value(block_opt) + (coap_opt_length(block_opt) - 1)) &= ~0x08;
Dcoap_option.h296 uint32_t coap_opt_length(const coap_opt_t *opt);
/third_party/libcoap/src/
Dcoap_uri.c356 coap_opt_length(buf), in coap_uri_into_options()
376 coap_opt_length(buf), in coap_uri_into_options()
730 uint16_t seg_len = coap_opt_length(q), i; in coap_get_query()
751 uint16_t seg_len = coap_opt_length(q), i; in coap_get_query()
782 coap_opt_length(q), &uri) < 0) { in coap_get_uri_path()
796 uint16_t seg_len = coap_opt_length(q), i; in coap_get_uri_path()
822 uint16_t seg_len = coap_opt_length(q), i; in coap_get_uri_path()
Dcoap_debug.c780 coap_opt_length(option))); in coap_show_pdu()
793 coap_opt_length(option), in coap_show_pdu()
799 coap_opt_length(option))); in coap_show_pdu()
810 coap_opt_length(option))); in coap_show_pdu()
821 coap_opt_length(option)); in coap_show_pdu()
852 opt_len = coap_opt_length(option); in coap_show_pdu()
922 if (coap_opt_length(option)) { in coap_show_pdu()
926 coap_opt_length(option))); in coap_show_pdu()
935 opt_len = coap_opt_length(option); in coap_show_pdu()
959 coap_opt_length(option), in coap_show_pdu()
Dcoap_oscore.c153 keep_proxy_uri = coap_malloc_type(COAP_STRING, coap_opt_length(option)); in coap_rebuild_pdu_for_proxy()
156 memcpy(keep_proxy_uri, coap_opt_value(option), coap_opt_length(option)); in coap_rebuild_pdu_for_proxy()
159 coap_opt_length(option), in coap_rebuild_pdu_for_proxy()
162 coap_opt_length(option), in coap_rebuild_pdu_for_proxy()
194 coap_opt_length(buf), in coap_rebuild_pdu_for_proxy()
215 coap_opt_length(buf), in coap_rebuild_pdu_for_proxy()
517 coap_opt_length(option), in coap_oscore_new_pdu_encrypted()
525 coap_opt_length(option), in coap_oscore_new_pdu_encrypted()
532 coap_opt_length(option), in coap_oscore_new_pdu_encrypted()
545 coap_opt_length(option)); in coap_oscore_new_pdu_encrypted()
[all …]
Dcoap_block.c43 len = coap_opt_length(block_opt); in coap_opt_block_num()
51 coap_opt_length(block_opt) - 1); in coap_opt_block_num()
528 coap_insert_option(resend_pdu, COAP_OPTION_ECHO, coap_opt_length(echo), in coap_retransmit_oscore_pdu()
562 size_t rtag_length = rtag_opt ? coap_opt_length(rtag_opt) : 0; in coap_find_lg_xmit_response()
858 lg_xmit->b.b2.rtag_length = (uint8_t)min(coap_opt_length(opt), in coap_add_data_large_internal()
860 memcpy(lg_xmit->b.b2.rtag, coap_opt_value(opt), coap_opt_length(opt)); in coap_add_data_large_internal()
1899 coap_opt_length(opt)); in track_fetch_observe()
2276 coap_opt_length(etag_opt)); in coap_handle_request_send_block()
2423 coap_opt_length(option), in coap_handle_request_send_block()
2626 coap_opt_length(fmt_opt)) : in coap_handle_request_put_block()
[all …]
Dcoap_net.c1140 coap_opt_length(opt)); in coap_send()
1433 coap_decode_var_bytes(coap_opt_value(opt), coap_opt_length(opt)); in coap_send_internal()
2431 size += coap_opt_length(option); in coap_new_error_response()
2461 coap_opt_length(option), in coap_new_error_response()
2673 val = coap_decode_var_bytes(coap_opt_value(nores), coap_opt_length(nores)); in no_response()
2851 coap_opt_length(opt), &uri) < 0) { in handle_request()
2861 uri.host.length = coap_opt_length(opt); in handle_request()
2906 coap_decode_var_bytes(coap_opt_value(opt), coap_opt_length(opt)); in handle_request()
3110 coap_opt_length(observe)); in handle_request()
3450 coap_opt_length(option))); in handle_signaling()
[all …]
Dcoap_pdu.c228 coap_opt_length(option), in coap_pdu_duplicate()
511 coap_opt_length(option)); in coap_remove_option()
1305 optsize ? coap_opt_length((const uint8_t *)opt - optsize) : 0; in coap_pdu_parse_opt()
1349 optsize ? coap_opt_length((const uint8_t *)opt - optsize) : 0; in coap_pdu_parse_opt()
Dcoap_cache.c105 coap_opt_length(option))) { in coap_cache_derive_key_w_ignore()
Dcoap_option.c212 coap_opt_length(const coap_opt_t *opt) { in coap_opt_length() function
Dcoap_subscribe.c131 coap_opt_length(observe)); in coap_persist_observe_add()
/third_party/libcoap/man/
Dcoap_pdu_access.txt.in18 coap_opt_length,
47 *uint32_t coap_opt_length(const coap_opt_t *_opt_);*
282 *Function: coap_opt_length()*
284 The *coap_opt_length*() function returns the length of the option _opt_
336 *coap_opt_length*() returns the option length.
391 coap_opt_length(option));
398 opt_iter.number, coap_opt_length(option));
406 opt_iter.number, coap_opt_length(option));
Dcoap_block.txt.in354 coap_opt_length(sbuf), coap_opt_value(sbuf))))
367 coap_opt_length(sbuf), coap_opt_value(sbuf))))
Dcoap_pdu_setup.txt.in606 coap_opt_length(sbuf), coap_opt_value(sbuf))))
619 coap_opt_length(sbuf), coap_opt_value(sbuf))))
Dcoap_cache.txt.in368 coap_opt_length (option));
/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.c610 coap_opt_length(option)); in hnd_put_example_data()
660 int opt_len = coap_opt_length(opt); in get_uri_proxy_scheme_info()
687 uri->host.length = coap_opt_length(opt); in get_uri_proxy_scheme_info()
697 coap_opt_length(opt)); in get_uri_proxy_scheme_info()
1024 coap_opt_length(proxy_uri), in hnd_proxy_uri()
1027 coap_opt_length(proxy_uri), in hnd_proxy_uri()
1142 coap_opt_length(option), in hnd_proxy_uri()
1341 coap_opt_length(option)); in hnd_put_post()
1471 coap_opt_length(option), in hnd_put_post()
1477 coap_opt_length(option), in hnd_put_post()
[all …]
Dcoap-rd.c376 rd->etag_len = min(coap_opt_length(etag), sizeof(rd->etag)); in make_rd()
526 coap_opt_length(b), in hnd_post_rd()
Doscore-interop-server.c189 coap_opt_length(option)); in hnd_put_hello_7()
/third_party/libcoap/tests/
Dtest_options.c366 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 2); in t_access_option1()
379 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 2); in t_access_option2()
395 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 13); in t_access_option3()
408 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 65535); in t_access_option4()
421 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 490); in t_access_option5()
437 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 0); in t_access_option6()
450 CU_ASSERT(coap_opt_length((const coap_opt_t *)teststr) == 0); in t_access_option7()
Dtest_pdu.c743 CU_ASSERT(coap_opt_length(option) == 1); in t_encode_pdu12()
778 CU_ASSERT(coap_opt_length(option) == 1); in t_encode_pdu13()
813 CU_ASSERT(coap_opt_length(option) == 1); in t_encode_pdu14()
848 CU_ASSERT(coap_opt_length(option) == 1); in t_encode_pdu15()
/third_party/libcoap/
Dlibcoap-3.map153 coap_opt_length;
Dlibcoap-3.sym150 coap_opt_length
DChangeLog326 * option.c (coap_opt_size, coap_opt_value, coap_opt_length):