Home
last modified time | relevance | path

Searched refs:opt_iter (Results 1 – 10 of 10) sorted by relevance

/net-tools-2.7.6/libcoap/src/
Ddebug.c379 coap_opt_iterator_t opt_iter; in coap_show_pdu() local
395 coap_option_iterator_init((coap_pdu_t *)pdu, &opt_iter, COAP_OPT_ALL); in coap_show_pdu()
398 while ((option = coap_option_next(&opt_iter))) { in coap_show_pdu()
405 switch (opt_iter.type) { in coap_show_pdu()
436 if (opt_iter.type == COAP_OPTION_URI_PATH || in coap_show_pdu()
437 opt_iter.type == COAP_OPTION_PROXY_URI || in coap_show_pdu()
438 opt_iter.type == COAP_OPTION_URI_HOST || in coap_show_pdu()
439 opt_iter.type == COAP_OPTION_LOCATION_PATH || in coap_show_pdu()
440 opt_iter.type == COAP_OPTION_LOCATION_QUERY || in coap_show_pdu()
441 opt_iter.type == COAP_OPTION_URI_QUERY) { in coap_show_pdu()
[all …]
Dnet.c448 coap_opt_iterator_t opt_iter; in coap_option_check_critical() local
451 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL); in coap_option_check_critical()
453 while (coap_option_next(&opt_iter)) { in coap_option_check_critical()
461 if (opt_iter.type & 0x01) { in coap_option_check_critical()
463 switch (opt_iter.type) { in coap_option_check_critical()
477 if (coap_option_filter_get(ctx->known_options, opt_iter.type) <= 0) { in coap_option_check_critical()
478 debug("unknown critical option %d\n", opt_iter.type); in coap_option_check_critical()
484 if (coap_option_filter_set(unknown, opt_iter.type) == -1) { in coap_option_check_critical()
1034 coap_opt_iterator_t opt_iter; in coap_new_error_response() local
1061 coap_option_iterator_init(request, &opt_iter, opts); in coap_new_error_response()
[all …]
Dblock.c46 coap_opt_iterator_t opt_iter; in coap_get_block() local
52 if (pdu && (option = coap_check_option(pdu, type, &opt_iter))) { in coap_get_block()
Dresource.c384 coap_opt_iterator_t opt_iter; local
393 coap_option_iterator_init((coap_pdu_t *)request, &opt_iter, filter);
394 while ((option = coap_option_next(&opt_iter)))
/net-tools-2.7.6/libcoap/examples/
Detsi_iot_01.c242 coap_opt_iterator_t opt_iter; in hnd_post_test() local
280 option = coap_check_option(request, COAP_OPTION_CONTENT_TYPE, &opt_iter); in hnd_post_test()
308 coap_opt_iterator_t opt_iter; in hnd_put_test() local
336 option = coap_check_option(request, COAP_OPTION_CONTENT_TYPE, &opt_iter); in hnd_put_test()
375 coap_opt_iterator_t opt_iter; in hnd_get_query() local
389 coap_option_iterator_init(request, &opt_iter, f); in hnd_get_query()
392 while ((len < sizeof(buf)) && (q = coap_option_next(&opt_iter))) { in hnd_get_query()
413 coap_opt_iterator_t opt_iter; in hnd_get_separate() local
431 coap_option_iterator_init(request, &opt_iter, f); in hnd_get_separate()
433 while ((option = coap_option_next(&opt_iter))) { in hnd_get_separate()
Dcoap-rd.c134 coap_opt_iterator_t opt_iter; in hnd_put_resource()
148 etag = coap_check_option(request, COAP_OPTION_ETAG, &opt_iter); in hnd_put_resource()
358 coap_opt_iterator_t opt_iter; in make_rd() local
378 etag = coap_check_option(pdu, COAP_OPTION_ETAG, &opt_iter); in make_rd()
396 coap_opt_iterator_t opt_iter; in hnd_post_rd() local
415 query = coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter); in hnd_post_rd()
Dcoap-server.c99 coap_opt_iterator_t opt_iter; in hnd_get_time() local
136 && (option = coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter)) in hnd_get_time()
217 coap_opt_iterator_t opt_iter; in hnd_get_async() local
231 option = coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter); in hnd_get_async()
Dclient.c324 coap_opt_iterator_t opt_iter; in message_handler() local
357 if (sent && coap_check_option(received, COAP_OPTION_SUBSCRIPTION, &opt_iter)) { in message_handler()
364 block_opt = coap_check_option(received, COAP_OPTION_BLOCK2, &opt_iter); in message_handler()
366 unsigned short blktype = opt_iter.type; in message_handler()
426 block_opt = coap_check_option(received, COAP_OPTION_BLOCK1, &opt_iter); in message_handler()
526 ready = coap_check_option(received, COAP_OPTION_SUBSCRIPTION, &opt_iter) == NULL; in message_handler()
/net-tools-2.7.6/libcoap/examples/contiki/
Dserver.c96 coap_opt_iterator_t opt_iter; in hnd_get_time() local
130 && (option = coap_check_option(request, COAP_OPTION_URI_QUERY, &opt_iter)) in hnd_get_time()
/net-tools-2.7.6/
Dcoap-client.c1207 coap_opt_iterator_t *opt_iter, in read_blocks() argument
1211 unsigned short blktype = opt_iter->type; in read_blocks()
1266 static coap_opt_t *get_block(coap_pdu_t *pdu, coap_opt_iterator_t *opt_iter) in get_block() argument
1274 coap_option_iterator_init(pdu, opt_iter, f); in get_block()
1275 return coap_option_next(opt_iter); in get_block()
1344 coap_opt_iterator_t opt_iter; in coap_message_handler() local
1372 &opt_iter)) { in coap_message_handler()
1377 block_opt = get_block(received, &opt_iter); in coap_message_handler()
1382 &opt_iter, in coap_message_handler()
1388 &opt_iter); in coap_message_handler()
[all …]