Home
last modified time | relevance | path

Searched refs:COAP_OPTION_BLOCK2 (Results 1 – 12 of 12) sorted by relevance

/third_party/libcoap/tests/
Dtest_wellknown.c174 CU_ASSERT(coap_get_block(response, COAP_OPTION_BLOCK2, &block) != 0); in t_wellknown4()
194 if (!coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown5()
207 CU_ASSERT(coap_get_block(response, COAP_OPTION_BLOCK2, &block) != 0); in t_wellknown5()
233 if (!pdu || !coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown6()
246 CU_ASSERT(coap_get_block(response, COAP_OPTION_BLOCK2, &block) != 0); in t_wellknown6()
/third_party/libcoap/src/
Dblock.c161 if (coap_get_block(request, COAP_OPTION_BLOCK2, &block2)) { in coap_add_data_blocked_response()
193 res = coap_write_block_opt(&block2, COAP_OPTION_BLOCK2, response, length); in coap_add_data_blocked_response()
230 coap_write_block_opt(&block2, COAP_OPTION_BLOCK2, response, length); in coap_add_data_blocked_response()
395 option = COAP_OPTION_BLOCK2; in coap_add_data_large_internal()
654 uint16_t block_opt = COAP_OPTION_BLOCK2; in coap_add_data_large_response()
661 if (coap_get_block(request, COAP_OPTION_BLOCK2, &block)) { in coap_add_data_large_response()
962 if (coap_get_block(pdu, COAP_OPTION_BLOCK2, &block)) { in coap_handle_request_send_block()
963 block_opt = COAP_OPTION_BLOCK2; in coap_handle_request_send_block()
1648 if (coap_get_block(rcvd, COAP_OPTION_BLOCK2, &block)) { in coap_handle_response_get_block()
1650 block_opt = COAP_OPTION_BLOCK2; in coap_handle_response_get_block()
[all …]
Dcoap_debug.c348 { COAP_OPTION_BLOCK2, "Block2" }, in msg_option_string()
608 case COAP_OPTION_BLOCK2: in coap_show_pdu()
Dresource.c932 if (coap_get_block(obs->pdu, COAP_OPTION_BLOCK2, &block)) {
934 coap_add_option(response, COAP_OPTION_BLOCK2,
Dnet.c729 case COAP_OPTION_BLOCK2: in coap_option_check_critical()
1280 if (coap_check_option(pdu, COAP_OPTION_BLOCK2, &opt_iter) != NULL) { in coap_send_internal()
2228 if (coap_get_block(request, COAP_OPTION_BLOCK2, &block)) { in coap_wellknown_response()
2292 if (coap_write_block_opt(&block, COAP_OPTION_BLOCK2, resp, wkc_len) < 0) { in coap_wellknown_response()
2772 if (coap_get_block(pdu, COAP_OPTION_BLOCK2, &block)) { in handle_request()
Dpdu.c930 case COAP_OPTION_BLOCK2: if (len > 3) res = 0; break; in coap_pdu_parse_opt_base()
/third_party/libcoap/include/coap3/
Dpdu.h131 #define COAP_OPTION_BLOCK2 23 /* CU-_E_U, uint, 0-3 B, RFC7959 */ macro
/third_party/libcoap/examples/
Dcoap-client.c369 block_opt = coap_check_option(received, COAP_OPTION_BLOCK2, &opt_iter); in message_handler()
758 opt = COAP_OPTION_BLOCK2; in set_blocksize()
1648 coap_register_option(ctx, COAP_OPTION_BLOCK2); in main()
Dcoap-server.c1183 case COAP_OPTION_BLOCK2: in hnd_proxy_uri()
1686 case COAP_OPTION_BLOCK2: in proxy_message_handler()
2588 COAP_OPTION_BLOCK2, in main()
/third_party/libcoap/man/
Dcoap_pdu_access.txt.in204 COAP_OPTION_BLOCK2 23 /* CU-_E_U, uint, 0-3 B, RFC7959 */
Dcoap_cache.txt.in343 COAP_OPTION_BLOCK2 };
Dcoap_pdu_setup.txt.in298 COAP_OPTION_BLOCK2 23 /* CU-_E_U, uint, 0-3 B, RFC7959 */