Home
last modified time | relevance | path

Searched refs:COAP_OPT_LENGTH (Results 1 – 13 of 13) sorted by relevance

/net-tools-latest/libcoap/include/coap/
Dblock.h45 (COAP_OPT_LENGTH(opt) ? (COAP_OPT_VALUE(opt) + (COAP_OPT_LENGTH(opt)-1)) : 0)
49 (COAP_OPT_LENGTH(opt) ? (*COAP_OPT_BLOCK_LAST(opt) & 0x08) : 0)
53 (COAP_OPT_LENGTH(opt) ? (*COAP_OPT_BLOCK_LAST(opt) & 0x07) : 0)
73 *(COAP_OPT_VALUE(block_opt) + (COAP_OPT_LENGTH(block_opt) - 1)) |= 0x08; in coap_opt_block_set_m()
75 *(COAP_OPT_VALUE(block_opt) + (COAP_OPT_LENGTH(block_opt) - 1)) &= ~0x08; in coap_opt_block_set_m()
Doption.h392 #define COAP_OPT_LENGTH(opt) coap_opt_length(opt) macro
/net-tools-latest/libcoap/examples/
Dcoap-rd.c149 if (!etag || (COAP_OPT_LENGTH(etag) != rd->etag_len) in hnd_put_resource()
169 rd->etag_len = min(COAP_OPT_LENGTH(etag), sizeof(rd->etag)); in hnd_put_resource()
380 rd->etag_len = min(COAP_OPT_LENGTH(etag), sizeof(rd->etag)); in make_rd()
418 COAP_OPT_VALUE(query), COAP_OPT_LENGTH(query), &h); in hnd_post_rd()
420 COAP_OPT_VALUE(query), COAP_OPT_LENGTH(query), &ins); in hnd_post_rd()
422 COAP_OPT_VALUE(query), COAP_OPT_LENGTH(query), &lt); in hnd_post_rd()
424 COAP_OPT_VALUE(query), COAP_OPT_LENGTH(query), &rt); in hnd_post_rd()
532 COAP_OPT_LENGTH(b), in hnd_post_rd()
Detsi_iot_01.c283 coap_decode_var_bytes(COAP_OPT_VALUE(option), COAP_OPT_LENGTH(option)); in hnd_post_test()
294 COAP_OPT_LENGTH(buf), COAP_OPT_VALUE(buf)); in hnd_post_test()
340 coap_decode_var_bytes(COAP_OPT_VALUE(option), COAP_OPT_LENGTH(option)); in hnd_put_test()
397 L = min(sizeof(buf) - len, COAP_OPT_LENGTH(q)); in hnd_get_query()
438 for (i = 6; i < COAP_OPT_LENGTH(option); ++i) in hnd_get_separate()
Dcoap-server.c138 min(5, COAP_OPT_LENGTH(option))) == 0) { in hnd_get_time()
236 for (size = COAP_OPT_LENGTH(option); size; --size, ++p) in hnd_get_async()
Dclient.c705 COAP_OPT_LENGTH(buf), in cmdline_uri()
720 COAP_OPT_LENGTH(buf), in cmdline_uri()
/net-tools-latest/libcoap/src/
Dresource.c193 while (resource_param.length < COAP_OPT_LENGTH(query_filter)
197 if (resource_param.length < COAP_OPT_LENGTH(query_filter)) {
215 assert((resource_param.length + 1) <= COAP_OPT_LENGTH(query_filter));
217 COAP_OPT_LENGTH(query_filter) - (resource_param.length + 1);
395 coap_hash(COAP_OPT_VALUE(option), COAP_OPT_LENGTH(option), key);
Ddebug.c408 COAP_OPT_LENGTH(option)); in coap_show_pdu()
431 COAP_OPT_LENGTH(option))); in coap_show_pdu()
448 COAP_OPT_LENGTH(option), in coap_show_pdu()
Dblock.c38 COAP_OPT_LENGTH(block_opt) - 1); in coap_opt_block_num()
Dnet.c1111 COAP_OPT_LENGTH(option), in coap_new_error_response()
/net-tools-latest/libcoap/examples/contiki/
Dcoap-observer.c159 COAP_OPT_LENGTH(buf), COAP_OPT_VALUE(buf)); in PROCESS_THREAD()
Dserver.c132 min(5, COAP_OPT_LENGTH(option))) == 0) { in hnd_get_time()
/net-tools-latest/
Dcoap-client.c688 COAP_OPT_LENGTH(buf), in parse_uri()
704 COAP_OPT_LENGTH(buf), in parse_uri()