/third_party/libcoap/src/ |
D | coap_oscore.c | 142 coap_opt_iterator_t opt_iter; in coap_rebuild_pdu_for_proxy() local 148 coap_check_option(pdu, COAP_OPTION_PROXY_URI, &opt_iter)) == NULL) in coap_rebuild_pdu_for_proxy() 280 coap_opt_iterator_t opt_iter; in coap_oscore_new_pdu_encrypted() local 306 if (coap_check_option(pdu, COAP_OPTION_OSCORE, &opt_iter)) in coap_oscore_new_pdu_encrypted() 309 if (coap_check_option(pdu, COAP_OPTION_OBSERVE, &opt_iter)) in coap_oscore_new_pdu_encrypted() 507 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL); in coap_oscore_new_pdu_encrypted() 508 while ((option = coap_option_next(&opt_iter))) { in coap_oscore_new_pdu_encrypted() 509 switch (opt_iter.number) { in coap_oscore_new_pdu_encrypted() 516 opt_iter.number, in coap_oscore_new_pdu_encrypted() 524 opt_iter.number, in coap_oscore_new_pdu_encrypted() [all …]
|
D | coap_pdu.c | 220 coap_opt_iterator_t opt_iter; in coap_pdu_duplicate() local 223 coap_option_iterator_init(old_pdu, &opt_iter, COAP_OPT_ALL); in coap_pdu_duplicate() 224 while ((option = coap_option_next(&opt_iter))) { in coap_pdu_duplicate() 225 if (drop_options && coap_option_filter_get(drop_options, opt_iter.number)) in coap_pdu_duplicate() 227 if (!coap_add_option_internal(pdu, opt_iter.number, in coap_pdu_duplicate() 427 coap_opt_iterator_t opt_iter; in coap_remove_option() local 435 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL); in coap_remove_option() 436 while ((option = coap_option_next(&opt_iter))) { in coap_remove_option() 437 if (opt_iter.number == number) { in coap_remove_option() 449 next_option = coap_option_next(&opt_iter); in coap_remove_option() [all …]
|
D | coap_net.c | 666 coap_opt_iterator_t opt_iter; in coap_option_check_critical() local 670 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL); in coap_option_check_critical() 672 while (coap_option_next(&opt_iter)) { in coap_option_check_critical() 673 if (opt_iter.number & 0x01) { in coap_option_check_critical() 675 switch (opt_iter.number) { in coap_option_check_critical() 681 opt_iter.number); in coap_option_check_critical() 683 coap_option_filter_set(unknown, opt_iter.number); in coap_option_check_critical() 707 if (coap_option_filter_get(&ctx->known_options, opt_iter.number) <= 0) { in coap_option_check_critical() 709 if ((opt_iter.number & 0x02) == 0) { in coap_option_check_critical() 723 coap_log_debug("unknown critical option %d\n", opt_iter.number); in coap_option_check_critical() [all …]
|
D | coap_cache.c | 78 coap_opt_iterator_t opt_iter; in coap_cache_derive_key_w_ignore() local 83 if (!coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL)) { in coap_cache_derive_key_w_ignore() 97 while ((option = coap_option_next(&opt_iter))) { in coap_cache_derive_key_w_ignore() 98 if (is_cache_key(opt_iter.number, cache_ignore_count, in coap_cache_derive_key_w_ignore() 100 if (!coap_digest_update(dctx, (const uint8_t *)&opt_iter.number, in coap_cache_derive_key_w_ignore() 101 sizeof(opt_iter.number))) { in coap_cache_derive_key_w_ignore()
|
D | coap_uri.c | 719 coap_opt_iterator_t opt_iter; in coap_get_query() local 728 coap_option_iterator_init(request, &opt_iter, &f); in coap_get_query() 729 while ((q = coap_option_next(&opt_iter))) { in coap_get_query() 747 coap_option_iterator_init(request, &opt_iter, &f); in coap_get_query() 748 while ((q = coap_option_next(&opt_iter))) { in coap_get_query() 770 coap_opt_iterator_t opt_iter; in coap_get_uri_path() local 777 q = coap_check_option(request, COAP_OPTION_PROXY_URI, &opt_iter); in coap_get_uri_path() 794 coap_option_iterator_init(request, &opt_iter, &f); in coap_get_uri_path() 795 while ((q = coap_option_next(&opt_iter))) { in coap_get_uri_path() 817 coap_option_iterator_init(request, &opt_iter, &f); in coap_get_uri_path() [all …]
|
D | coap_debug.c | 717 coap_opt_iterator_t opt_iter; in coap_show_pdu() local 761 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL); in coap_show_pdu() 765 while ((option = coap_option_next(&opt_iter))) { in coap_show_pdu() 775 switch (opt_iter.number) { in coap_show_pdu() 790 switch (opt_iter.number) { in coap_show_pdu() 806 switch (opt_iter.number) { in coap_show_pdu() 817 switch (opt_iter.number) { in coap_show_pdu() 947 if (opt_iter.number == COAP_OPTION_URI_PATH || in coap_show_pdu() 948 opt_iter.number == COAP_OPTION_PROXY_URI || in coap_show_pdu() 949 opt_iter.number == COAP_OPTION_URI_HOST || in coap_show_pdu() [all …]
|
D | coap_block.c | 60 coap_opt_iterator_t opt_iter; in coap_get_block_b() local 66 if (pdu && (option = coap_check_option(pdu, number, &opt_iter)) != NULL) { in coap_get_block_b() 558 coap_opt_iterator_t opt_iter; in coap_find_lg_xmit_response() local 561 &opt_iter); in coap_find_lg_xmit_response() 618 coap_opt_iterator_t opt_iter; in coap_add_data_large_internal() local 836 if (!coap_check_option(pdu, COAP_OPTION_RTAG, &opt_iter)) in coap_add_data_large_internal() 856 opt = coap_check_option(request, COAP_OPTION_RTAG, &opt_iter); in coap_add_data_large_internal() 1890 coap_opt_iterator_t opt_iter; in track_fetch_observe() local 1892 &opt_iter); in track_fetch_observe() 2224 coap_opt_iterator_t opt_iter; in coap_handle_request_send_block() local [all …]
|
D | coap_subscribe.c | 68 coap_opt_iterator_t opt_iter; in coap_persist_observe_add() local 127 observe = coap_check_option(pdu, COAP_OPTION_OBSERVE, &opt_iter); in coap_persist_observe_add()
|
/third_party/libcoap/examples/ |
D | etsi_iot_01.c | 165 coap_opt_iterator_t opt_iter; in hnd_post_test() local 201 option = coap_check_option(request, COAP_OPTION_CONTENT_TYPE, &opt_iter); in hnd_post_test() 231 coap_opt_iterator_t opt_iter; in hnd_put_test() local 259 option = coap_check_option(request, COAP_OPTION_CONTENT_TYPE, &opt_iter); in hnd_put_test() 302 coap_opt_iterator_t opt_iter; in hnd_get_query() local 318 coap_option_iterator_init(request, &opt_iter, &f); in hnd_get_query() 321 while ((len < sizeof(buf)) && (q = coap_option_next(&opt_iter))) { in hnd_get_query() 344 coap_opt_iterator_t opt_iter; in hnd_get_separate() local 362 coap_option_iterator_init(request, &opt_iter, &f); in hnd_get_separate() 364 while ((option = coap_option_next(&opt_iter))) { in hnd_get_separate()
|
D | coap-server.c | 514 coap_opt_iterator_t opt_iter; in hnd_put_example_data() local 607 &opt_iter)) != NULL) { in hnd_put_example_data() 661 coap_opt_iterator_t opt_iter; in get_uri_proxy_scheme_info() local 685 opt = coap_check_option(request, COAP_OPTION_URI_HOST, &opt_iter); in get_uri_proxy_scheme_info() 693 opt = coap_check_option(request, COAP_OPTION_URI_PORT, &opt_iter); in get_uri_proxy_scheme_info() 984 coap_opt_iterator_t opt_iter; in hnd_proxy_uri() local 1008 opt = coap_check_option(request, COAP_OPTION_PROXY_SCHEME, &opt_iter); in hnd_proxy_uri() 1021 proxy_uri = coap_check_option(request, COAP_OPTION_PROXY_URI, &opt_iter); in hnd_proxy_uri() 1114 coap_option_iterator_init(request, &opt_iter, COAP_OPT_ALL); in hnd_proxy_uri() 1115 while ((option = coap_option_next(&opt_iter))) { in hnd_proxy_uri() [all …]
|
D | coap-rd.c | 170 coap_opt_iterator_t opt_iter; in hnd_put_resource() 184 etag = coap_check_option(request, COAP_OPTION_ETAG, &opt_iter); in hnd_put_resource() 354 coap_opt_iterator_t opt_iter; in make_rd() local 374 etag = coap_check_option(pdu, COAP_OPTION_ETAG, &opt_iter); in make_rd()
|
D | coap-client.c | 386 coap_opt_iterator_t opt_iter; in message_handler() local 421 coap_check_option(received, COAP_OPTION_OBSERVE, &opt_iter)) { in message_handler() 436 block_opt = coap_check_option(received, COAP_OPTION_BLOCK2, &opt_iter); in message_handler() 443 COAP_OPTION_OBSERVE, &opt_iter) == NULL : 1; in message_handler() 476 COAP_OPTION_OBSERVE, &opt_iter) == NULL : 1; in message_handler()
|
D | oscore-interop-server.c | 181 coap_opt_iterator_t opt_iter; in hnd_put_hello_7() local 187 &opt_iter)) != NULL) { in hnd_put_hello_7()
|
/third_party/libcoap/man/ |
D | coap_pdu_access.txt.in | 368 coap_opt_iterator_t opt_iter; 388 option = coap_check_option(pdu, COAP_OPTION_OBSERVE, &opt_iter); 395 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL); 396 while ((option = coap_option_next(&opt_iter))) { 398 opt_iter.number, coap_opt_length(option)); 403 coap_option_iterator_init(pdu, &opt_iter, &ignore_options); 404 while ((option = coap_option_next(&opt_iter))) { 406 opt_iter.number, coap_opt_length(option));
|
D | coap_cache.txt.in | 266 coap_opt_iterator_t opt_iter; 365 &opt_iter)) != NULL) {
|