Home
last modified time | relevance | path

Searched refs:coap_opt_t (Results 1 – 20 of 20) sorted by relevance

/third_party/libcoap/tests/
Dtest_options.c242 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 …]
Dtest_pdu.c712 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/
Doption.h26 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 …]
Dblock.h63 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) {
Dcoap_resource_internal.h136 coap_opt_t *);
Dcoap_block_internal.h178 coap_opt_t *observe,
/third_party/libcoap/src/
Doption.c37 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 …]
Dpdu.c187 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 …]
Dblock.c18 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 …]
Duri.c559 coap_opt_t *q; in coap_get_query()
609 coap_opt_t *q; in coap_get_uri_path()
Dcoap_cache.c73 coap_opt_t *option; in coap_cache_derive_key_w_ignore()
Dnet.c1063 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()
Dresource.c168 coap_opt_t *query_filter COAP_UNUSED) {
172 size_t offset, coap_opt_t *query_filter) {
Dcoap_debug.c521 coap_opt_t *option; in coap_show_pdu()
/third_party/libcoap/man/
Dcoap_pdu_access.txt.in36 *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;
Dcoap_cache.txt.in231 coap_opt_t *option;
/third_party/libcoap/examples/
Detsi_iot_01.c166 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()
Dcoap-server.c479 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()
Dcoap-rd.c151 coap_opt_t *token, *etag; in hnd_put_resource()
372 coap_opt_t *etag; in make_rd()
Dcoap-client.c318 coap_opt_t *block_opt; in message_handler()