Home
last modified time | relevance | path

Searched refs:coap_opt_value (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)
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.h307 const uint8_t *coap_opt_value(const coap_opt_t *opt);
/third_party/libcoap/src/
Dcoap_uri.c357 coap_opt_value(buf))); in coap_uri_into_options()
377 coap_opt_value(buf))); in coap_uri_into_options()
731 const uint8_t *seg= coap_opt_value(q); in coap_get_query()
752 const uint8_t *seg= coap_opt_value(q); in coap_get_query()
781 if (coap_split_proxy_uri(coap_opt_value(q), in coap_get_uri_path()
797 const uint8_t *seg= coap_opt_value(q); in coap_get_uri_path()
823 const uint8_t *seg= coap_opt_value(q); in coap_get_uri_path()
Dcoap_debug.c779 coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
792 buf_len = print_readable(coap_opt_value(option), in coap_show_pdu()
798 coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
809 coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
820 content_format = (int)coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
858 opt_val = coap_opt_value(option); in coap_show_pdu()
925 coap_decode_var_bytes(coap_opt_value(option), in coap_show_pdu()
936 opt_val = coap_opt_value(option); in coap_show_pdu()
958 buf_len = print_readable(coap_opt_value(option), in coap_show_pdu()
Dcoap_oscore.c156 memcpy(keep_proxy_uri, coap_opt_value(option), coap_opt_length(option)); in coap_rebuild_pdu_for_proxy()
163 (const char *)coap_opt_value(option)); in coap_rebuild_pdu_for_proxy()
195 coap_opt_value(buf))) { in coap_rebuild_pdu_for_proxy()
216 coap_opt_value(buf))) { in coap_rebuild_pdu_for_proxy()
518 coap_opt_value(option))) in coap_oscore_new_pdu_encrypted()
526 coap_opt_value(option))) in coap_oscore_new_pdu_encrypted()
533 coap_opt_value(option))) in coap_oscore_new_pdu_encrypted()
544 observe_value = coap_decode_var_bytes(coap_opt_value(option), in coap_oscore_new_pdu_encrypted()
560 coap_opt_value(option))) in coap_oscore_new_pdu_encrypted()
824 osc_value = coap_opt_value(opt); in coap_oscore_decrypt_pdu()
[all …]
Dcoap_block.c50 num = coap_decode_var_bytes(coap_opt_value(block_opt), in coap_opt_block_num()
529 coap_opt_value(echo)); in coap_retransmit_oscore_pdu()
563 const uint8_t *rtag = rtag_opt ? coap_opt_value(rtag_opt) : NULL; in coap_find_lg_xmit_response()
860 memcpy(lg_xmit->b.b2.rtag, coap_opt_value(opt), coap_opt_length(opt)); in coap_add_data_large_internal()
1898 observe_action = coap_decode_var_bytes(coap_opt_value(opt), in track_fetch_observe()
2275 uint64_t etag = coap_decode_var_bytes8(coap_opt_value(etag_opt), in coap_handle_request_send_block()
2424 coap_opt_value(option))) { in coap_handle_request_send_block()
2625 uint16_t fmt = fmt_opt ? coap_decode_var_bytes(coap_opt_value(fmt_opt), in coap_handle_request_put_block()
2632 const uint8_t *rtag = rtag_opt ? coap_opt_value(rtag_opt) : NULL; in coap_handle_request_put_block()
2639 total = size_opt ? coap_decode_var_bytes(coap_opt_value(size_opt), in coap_handle_request_put_block()
[all …]
Dcoap_net.c1139 observe_action = coap_decode_var_bytes(coap_opt_value(opt), in coap_send()
1433 coap_decode_var_bytes(coap_opt_value(opt), coap_opt_length(opt)); in coap_send_internal()
2462 coap_opt_value(option)); in coap_new_error_response()
2673 val = coap_decode_var_bytes(coap_opt_value(nores), coap_opt_length(nores)); in no_response()
2850 if (coap_split_proxy_uri(coap_opt_value(opt), in handle_request()
2862 uri.host.s = coap_opt_value(opt); in handle_request()
2906 coap_decode_var_bytes(coap_opt_value(opt), coap_opt_length(opt)); in handle_request()
3109 coap_decode_var_bytes(coap_opt_value(observe), in handle_request()
3449 coap_session_set_mtu(session, coap_decode_var_bytes(coap_opt_value(option), in handle_signaling()
3456 coap_decode_var_bytes(coap_opt_value(option), in handle_signaling()
[all …]
Dcoap_cache.c104 if (!coap_digest_update(dctx, coap_opt_value(option), in coap_cache_derive_key_w_ignore()
Dcoap_option.c249 coap_opt_value(const coap_opt_t *opt) { in coap_opt_value() function
Dcoap_subscribe.c130 observe_action = coap_decode_var_bytes(coap_opt_value(observe), in coap_persist_observe_add()
Dcoap_pdu.c229 coap_opt_value(option))) in coap_pdu_duplicate()
/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()
327 memcpy(buf + len, coap_opt_value(q), L); in hnd_get_query()
365 if (strncmp("delay=", (const char *)coap_opt_value(option), 6) == 0) { in hnd_get_separate()
370 d = d * 10 + coap_opt_value(option)[i] - '0'; in hnd_get_separate()
Dcoap-server.c609 coap_decode_var_bytes(coap_opt_value(option), in hnd_put_example_data()
659 const char *opt_val = (const char *)coap_opt_value(opt); in get_uri_proxy_scheme_info()
688 uri->host.s = coap_opt_value(opt); in get_uri_proxy_scheme_info()
696 coap_decode_var_bytes(coap_opt_value(opt), in get_uri_proxy_scheme_info()
1025 (const char *)coap_opt_value(proxy_uri)); in hnd_proxy_uri()
1026 if (coap_split_proxy_uri(coap_opt_value(proxy_uri), in hnd_proxy_uri()
1143 coap_opt_value(option))); in hnd_proxy_uri()
1340 coap_decode_var_bytes(coap_opt_value(option), in hnd_put_post()
1472 coap_opt_value(option))) in hnd_put_post()
1478 coap_opt_value(option))) in hnd_put_post()
[all …]
Dcoap-rd.c377 memcpy(rd->etag, coap_opt_value(etag), rd->etag_len); in make_rd()
527 coap_opt_value(b)); in hnd_post_rd()
Doscore-interop-server.c188 etag = coap_decode_var_bytes8(coap_opt_value(option), in hnd_put_hello_7()
/third_party/libcoap/tests/
Dtest_options.c367 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 1); in t_access_option1()
380 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 3); in t_access_option2()
396 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 4); in t_access_option3()
409 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 4); in t_access_option4()
422 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 5); in t_access_option5()
438 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), NULL); in t_access_option6()
451 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), NULL); in t_access_option7()
Dtest_pdu.c744 CU_ASSERT(*coap_opt_value(option) == opt_srt[n]); in t_encode_pdu12()
779 CU_ASSERT(*coap_opt_value(option) == opt_srt[n]); in t_encode_pdu13()
814 CU_ASSERT(*coap_opt_value(option) == opt_srt[n]); in t_encode_pdu14()
849 CU_ASSERT(*coap_opt_value(option) == opt_srt[n]); in t_encode_pdu15()
/third_party/libcoap/man/
Dcoap_pdu_access.txt.in19 coap_opt_value,
49 *const uint8_t *coap_opt_value(const coap_opt_t *_opt_);*
287 *Function: coap_opt_value()*
289 The *coap_opt_value*() function returns a pointer to the start of the data for
338 *coap_opt_value*() returns a pointer to the start of the option value or
390 uint32_t value = coap_decode_var_bytes(coap_opt_value(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.in367 coap_decode_var_bytes (coap_opt_value (option),
/third_party/libcoap/
Dlibcoap-3.map157 coap_opt_value;
Dlibcoap-3.sym154 coap_opt_value
DChangeLog326 * option.c (coap_opt_size, coap_opt_value, coap_opt_length):