/third_party/libcoap/tests/ |
D | test_options.c | 242 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 0, 0); in t_encode_option1() 254 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5, 268); in t_encode_option2() 266 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 14, 1); in t_encode_option3() 278 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 268, 184); in t_encode_option4() 290 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5133, 268); in t_encode_option5() 302 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 65535, 65535); in t_encode_option6() 315 result = coap_opt_encode((coap_opt_t *)buf, sizeof(buf), 3, in t_encode_option7() 330 result = coap_opt_encode((coap_opt_t *)buf, 8, 15, in t_encode_option8() 335 result = coap_opt_encode((coap_opt_t *)buf, 1, 15, in t_encode_option8() 347 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 269, 1); in t_encode_option9() [all …]
|
D | test_pdu.c | 712 coap_opt_t *option; in t_encode_pdu12() 747 coap_opt_t *option; in t_encode_pdu13() 782 coap_opt_t *option; in t_encode_pdu14() 818 coap_opt_t *option; in t_encode_pdu15()
|
/third_party/libcoap/include/coap3/ |
D | option.h | 26 typedef uint8_t coap_opt_t; typedef 27 #define PCHAR(p) ((coap_opt_t *)(p)) 50 size_t coap_opt_parse(const coap_opt_t *opt, 63 size_t coap_opt_size(const coap_opt_t *opt); 175 coap_opt_t *next_option; /**< pointer to the unparsed next option */ 215 coap_opt_t *coap_option_next(coap_opt_iterator_t *oi); 230 coap_opt_t *coap_check_option(const coap_pdu_t *pdu, 248 size_t coap_opt_setheader(coap_opt_t *opt, 279 size_t coap_opt_encode(coap_opt_t *opt, 298 uint32_t coap_opt_length(const coap_opt_t *opt); [all …]
|
D | block.h | 63 unsigned int coap_opt_block_num(const coap_opt_t *block_opt); 77 coap_opt_block_set_m(coap_opt_t *block_opt, int m) {
|
D | coap_resource_internal.h | 136 coap_opt_t *);
|
D | coap_block_internal.h | 178 coap_opt_t *observe,
|
/third_party/libcoap/src/ |
D | option.c | 37 coap_opt_parse(const coap_opt_t *opt, size_t length, coap_option_t *result) { in coap_opt_parse() 39 const coap_opt_t *opt_start = opt; /* store where parsing starts */ in coap_opt_parse() 150 coap_opt_t * 153 coap_opt_t *current_opt = NULL; in coap_option_next() 200 coap_opt_t * 214 coap_opt_length(const coap_opt_t *opt) { in coap_opt_length() 251 coap_opt_value(const coap_opt_t *opt) { in coap_opt_value() 286 coap_opt_size(const coap_opt_t *opt) { in coap_opt_size() 294 coap_opt_setheader(coap_opt_t *opt, size_t maxlen, in coap_opt_setheader() 304 opt[0] = (coap_opt_t)(delta << 4); in coap_opt_setheader() [all …]
|
D | pdu.c | 187 coap_opt_t *option; in coap_pdu_duplicate() 316 coap_opt_t *option; in coap_remove_option() 317 coap_opt_t *next_option = NULL; in coap_remove_option() 346 next_option[0] = (next_option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4); in coap_remove_option() 352 next_option[1] = (coap_opt_t)(opt_delta - 13); in coap_remove_option() 356 next_option[1] = (coap_opt_t)(opt_delta - 13); in coap_remove_option() 385 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8); in coap_remove_option() 392 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8); in coap_remove_option() 396 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8); in coap_remove_option() 417 coap_opt_t *option; in coap_insert_option() [all …]
|
D | block.c | 18 coap_opt_block_num(const coap_opt_t *block_opt) { in coap_opt_block_num() 40 coap_opt_t *option; in coap_get_block() 969 coap_opt_t *option; in coap_handle_request_send_block() 971 coap_opt_t *etag_opt = NULL; in coap_handle_request_send_block() 1228 coap_opt_t *observe, in coap_handle_request_put_block() 1249 coap_opt_t *size_opt = coap_check_option(pdu, in coap_handle_request_put_block() 1252 coap_opt_t *fmt_opt = coap_check_option(pdu, in coap_handle_request_put_block() 1639 coap_opt_t *size_opt = coap_check_option(rcvd, COAP_OPTION_SIZE2, in coap_handle_response_get_block() 1653 coap_opt_t *fmt_opt = coap_check_option(rcvd, in coap_handle_response_get_block() 1660 coap_opt_t *etag_opt = coap_check_option(rcvd, in coap_handle_response_get_block() [all …]
|
D | uri.c | 559 coap_opt_t *q; in coap_get_query() 609 coap_opt_t *q; in coap_get_uri_path()
|
D | coap_cache.c | 73 coap_opt_t *option; in coap_cache_derive_key_w_ignore()
|
D | net.c | 1063 coap_opt_t *opt; in coap_send() 1165 coap_opt_t *opt; in coap_send_internal() 2062 coap_opt_t *option; in coap_new_error_response() 2169 get_wkc_len(coap_context_t *context, coap_opt_t *query_filter) { in get_wkc_len() 2196 coap_opt_t *query_filter; in coap_wellknown_response() 2412 coap_opt_t *nores; in no_response() 2493 coap_opt_t *opt; in handle_request() 2753 coap_opt_t *observe = NULL; in handle_request() 2943 coap_opt_t *option; in handle_signaling()
|
D | resource.c | 168 coap_opt_t *query_filter COAP_UNUSED) { 172 size_t offset, coap_opt_t *query_filter) {
|
D | coap_debug.c | 521 coap_opt_t *option; in coap_show_pdu()
|
/third_party/libcoap/man/ |
D | coap_pdu_access.txt.in | 36 *coap_opt_t *coap_check_option(const coap_pdu_t *_pdu_, 46 *uint32_t coap_opt_length(const coap_opt_t *_opt_);* 48 *const uint8_t *coap_opt_value(const coap_opt_t *_opt_);* 64 *coap_opt_t *coap_option_next(coap_opt_iterator_t *_oi_);* 282 coap_opt_t *option;
|
D | coap_cache.txt.in | 231 coap_opt_t *option;
|
/third_party/libcoap/examples/ |
D | etsi_iot_01.c | 166 coap_opt_t *option; in hnd_post_test() 232 coap_opt_t *option; in hnd_put_test() 304 coap_opt_t *q; in hnd_get_query() 345 coap_opt_t *option; in hnd_get_separate()
|
D | coap-server.c | 479 coap_opt_t *option; in hnd_put_example_data() 662 coap_opt_t *opt, in get_uri_proxy_scheme_info() 994 coap_opt_t *opt; in hnd_proxy_uri() 995 coap_opt_t *proxy_uri; in hnd_proxy_uri() 1009 coap_opt_t *option; in hnd_proxy_uri() 1348 coap_opt_t *option; in hnd_put() 1606 coap_opt_t *option; in proxy_message_handler()
|
D | coap-rd.c | 151 coap_opt_t *token, *etag; in hnd_put_resource() 372 coap_opt_t *etag; in make_rd()
|
D | coap-client.c | 318 coap_opt_t *block_opt; in message_handler()
|