Home
last modified time | relevance | path

Searched refs:coap_pdu_t (Results 1 – 25 of 72) sorted by relevance

123

/third_party/libcoap/include/coap3/
Dcoap_pdu.h302 coap_pdu_t *coap_pdu_from_pbuf(struct pbuf *pbuf);
382 coap_pdu_t *coap_pdu_init(coap_pdu_type_t type, coap_pdu_code_t code,
395 coap_pdu_t *coap_new_pdu(coap_pdu_type_t type, coap_pdu_code_t code,
406 void coap_delete_pdu(coap_pdu_t *pdu);
421 coap_pdu_t *coap_pdu_duplicate(const coap_pdu_t *old_pdu,
444 coap_pdu_t *pdu);
460 int coap_add_token(coap_pdu_t *pdu,
485 size_t coap_add_option(coap_pdu_t *pdu,
501 int coap_add_data(coap_pdu_t *pdu,
517 uint8_t *coap_add_data_after(coap_pdu_t *pdu, size_t len);
[all …]
Dcoap_block_internal.h130 coap_pdu_t pdu; /**< skeletal PDU */
167 coap_pdu_t pdu; /**< skeletal PDU */
212 coap_pdu_t *pdu,
225 coap_pdu_t *request,
231 coap_mid_t coap_block_test_q_block(coap_session_t *session, coap_pdu_t *actual);
240 coap_pdu_t *pdu,
261 coap_pdu_t *response,
266 coap_pdu_t *pdu,
267 coap_pdu_t *response,
273 coap_pdu_t *pdu,
[all …]
Dcoap_pdu_internal.h119 struct coap_pdu_t { struct
170 int coap_pdu_resize(coap_pdu_t *pdu, size_t new_size); argument
181 int coap_pdu_check_resize(coap_pdu_t *pdu, size_t new_size);
217 int coap_pdu_parse_header(coap_pdu_t *pdu, coap_proto_t proto);
230 int coap_pdu_parse_opt(coap_pdu_t *pdu);
241 void coap_pdu_clear(coap_pdu_t *pdu, size_t size);
263 size_t coap_add_option_internal(coap_pdu_t *pdu,
275 int coap_remove_option(coap_pdu_t *pdu, coap_option_num_t number);
289 size_t coap_insert_option(coap_pdu_t *pdu, coap_option_num_t number,
303 size_t coap_update_option(coap_pdu_t *pdu,
[all …]
Dcoap_block.h133 int coap_get_block(const coap_pdu_t *pdu, coap_option_num_t number,
152 int coap_get_block_b(const coap_session_t *session, const coap_pdu_t *pdu,
177 coap_pdu_t *pdu,
203 coap_pdu_t *pdu,
219 int coap_add_block(coap_pdu_t *pdu,
235 int coap_add_block_b_data(coap_pdu_t *pdu, size_t len, const uint8_t *data,
273 void coap_add_data_blocked_response(const coap_pdu_t *request,
274 coap_pdu_t *response,
335 coap_pdu_t *pdu,
393 const coap_pdu_t *request,
[all …]
Dcoap_net.h63 const coap_pdu_t *sent,
64 const coap_pdu_t *received,
76 const coap_pdu_t *sent,
88 const coap_pdu_t *received,
99 const coap_pdu_t *received,
420 coap_pdu_t *coap_new_error_response(const coap_pdu_t *request,
440 const coap_pdu_t *request,
455 coap_mid_t coap_send_message_type(coap_session_t *session, const coap_pdu_t *request,
469 coap_mid_t coap_send_ack(coap_session_t *session, const coap_pdu_t *request);
483 coap_send_rst(coap_session_t *session, const coap_pdu_t *request) { in coap_send_rst()
[all …]
Dcoap_oscore_internal.h83 coap_pdu_t *coap_oscore_new_pdu_encrypted(coap_session_t *session,
84 coap_pdu_t *pdu,
98 struct coap_pdu_t *coap_oscore_decrypt_pdu(coap_session_t *session,
99 coap_pdu_t *pdu);
123 size_t coap_oscore_overhead(coap_session_t *session, coap_pdu_t *pdu);
132 int coap_rebuild_pdu_for_proxy(coap_pdu_t *pdu);
Dcoap_net_internal.h43 coap_pdu_t *pdu; /**< the CoAP PDU to send */
129 coap_pdu_t *unknown_pdu; /** PDU used for unknown resource request */
323 coap_pdu_t *pdu);
357 coap_pdu_t *pdu,
371 coap_pdu_t *coap_wellknown_response(coap_context_t *context,
373 coap_pdu_t *request);
405 coap_mid_t coap_send_internal(coap_session_t *session, coap_pdu_t *pdu);
Dcoap_cache.h72 const coap_pdu_t *pdu,
102 const coap_pdu_t *pdu,
153 const coap_pdu_t *pdu,
194 const coap_pdu_t *pdu,
205 const coap_pdu_t *coap_cache_get_pdu(const coap_cache_entry_t *cache_entry);
Dcoap_option.h193 coap_opt_iterator_t *coap_option_iterator_init(const coap_pdu_t *pdu,
228 coap_opt_t *coap_check_option(const coap_pdu_t *pdu,
360 int coap_add_optlist_pdu(coap_pdu_t *pdu, coap_optlist_t **optlist_chain);
/third_party/libcoap/src/
Dcoap_pdu.c42 coap_pdu_clear(coap_pdu_t *pdu, size_t size) { in coap_pdu_clear()
68 coap_pdu_t *
70 coap_pdu_t *pdu; in coap_pdu_from_pbuf()
80 pdu = coap_malloc_type(COAP_PDU, sizeof(coap_pdu_t)); in coap_pdu_from_pbuf()
96 coap_pdu_t *
99 coap_pdu_t *pdu; in coap_pdu_init()
115 pdu = coap_malloc_type(COAP_PDU, sizeof(coap_pdu_t)); in coap_pdu_init()
152 coap_pdu_t *
155 coap_pdu_t *pdu = coap_pdu_init(type, code, coap_new_message_id(session), in coap_new_pdu()
163 coap_delete_pdu(coap_pdu_t *pdu) { in coap_delete_pdu()
[all …]
Dcoap_cache.c73 const coap_pdu_t *pdu, in coap_cache_derive_key_w_ignore()
139 const coap_pdu_t *pdu, in coap_cache_derive_key()
152 coap_new_cache_entry(coap_session_t *session, const coap_pdu_t *pdu, in coap_new_cache_entry()
173 memcpy(entry->pdu, pdu, offsetof(coap_pdu_t, token)); in coap_new_cache_entry()
211 const coap_pdu_t *request, in coap_cache_get_by_pdu()
246 const coap_pdu_t *
Dcoap_block.c58 coap_get_block_b(const coap_session_t *session, const coap_pdu_t *pdu, in coap_get_block_b()
111 coap_get_block(const coap_pdu_t *pdu, coap_option_num_t number, in coap_get_block()
128 setup_block_b(coap_session_t *session, coap_pdu_t *pdu, coap_block_b_t *block, in setup_block_b()
171 coap_pdu_t *pdu, size_t data_length) { in coap_write_block_opt()
205 coap_pdu_t *pdu, size_t data_length) { in coap_write_block_b_opt()
234 coap_add_block(coap_pdu_t *pdu, size_t len, const uint8_t *data, in coap_add_block()
248 coap_add_block_b_data(coap_pdu_t *pdu, size_t len, const uint8_t *data, in coap_add_block_b_data()
273 coap_add_data_blocked_response(const coap_pdu_t *request, in coap_add_data_blocked_response()
274 coap_pdu_t *response, in coap_add_data_blocked_response()
437 coap_pdu_t *pdu = coap_pdu_duplicate(&lg_crcv->pdu, in coap_cancel_observe()
[all …]
/third_party/libcoap/examples/
Doscore-interop-server.c91 const coap_pdu_t *request, in hnd_get_index()
93 coap_pdu_t *response) { in hnd_get_index()
107 const coap_pdu_t *request, in hnd_get_hello_coap()
109 coap_pdu_t *response) { in hnd_get_hello_coap()
120 const coap_pdu_t *request, in hnd_get_hello_1()
122 coap_pdu_t *response) { in hnd_get_hello_1()
133 const coap_pdu_t *request, in hnd_get_hello_2()
135 coap_pdu_t *response) { in hnd_get_hello_2()
146 const coap_pdu_t *request, in hnd_get_hello_3()
148 coap_pdu_t *response) { in hnd_get_hello_3()
[all …]
Detsi_iot_01.c97 coap_pdu_t *request COAP_UNUSED,
99 coap_pdu_t *response) {
119 const coap_pdu_t *request, in hnd_get_resource()
121 coap_pdu_t *response) { in hnd_get_resource()
144 const coap_pdu_t *request COAP_UNUSED, in hnd_delete_resource()
146 coap_pdu_t *response) { in hnd_delete_resource()
162 const coap_pdu_t *request, in hnd_post_test()
164 coap_pdu_t *response) { in hnd_post_test()
228 const coap_pdu_t *request, in hnd_put_test()
230 coap_pdu_t *response) { in hnd_put_test()
[all …]
Dcoap-rd.c140 const coap_pdu_t *request COAP_UNUSED, in hnd_get_resource()
142 coap_pdu_t *response) { in hnd_get_resource()
164 const coap_pdu_t *request COAP_UNUSED, in hnd_put_resource()
166 coap_pdu_t *response) { in hnd_put_resource()
172 coap_pdu_t *response; in hnd_put_resource()
240 const coap_pdu_t *request COAP_UNUSED, in hnd_delete_resource()
242 coap_pdu_t *response) { in hnd_delete_resource()
258 const coap_pdu_t *request COAP_UNUSED, in hnd_get_rd()
260 coap_pdu_t *response) { in hnd_get_rd()
351 make_rd(const coap_pdu_t *pdu) { in make_rd()
[all …]
Dcoap-server.c266 const coap_pdu_t *request, in hnd_get_index()
268 coap_pdu_t *response) { in hnd_get_index()
280 const coap_pdu_t *request, in hnd_get_fetch_time()
282 coap_pdu_t *response) { in hnd_get_fetch_time()
335 const coap_pdu_t *request, in hnd_put_time()
337 coap_pdu_t *response) { in hnd_put_time()
383 const coap_pdu_t *request COAP_UNUSED, in hnd_delete_time()
385 coap_pdu_t *response COAP_UNUSED) { in hnd_delete_time()
399 const coap_pdu_t *request, in hnd_get_async()
401 coap_pdu_t *response) { in hnd_get_async()
[all …]
/third_party/libcoap/tests/
Dtest_error_response.c19 static coap_pdu_t *pdu; /* Holds the request PDU for most tests */
34 coap_pdu_t *response; in t_error_response1()
63 coap_pdu_t *response; in t_error_response2()
93 coap_pdu_t *response; in t_error_response3()
132 coap_pdu_t *response; in t_error_response4()
173 coap_pdu_t *response; in t_error_response5()
214 coap_pdu_t *response; in t_error_response6()
255 coap_pdu_t *response; in t_error_response7()
291 coap_pdu_t *response; in t_error_response8()
Dtest_oscore.c443 coap_pdu_t *pdu = coap_pdu_init(0, 0, 0, COAP_DEFAULT_MTU); in t_oscore_c_4()
444 coap_pdu_t *osc_pdu = NULL; in t_oscore_c_4()
510 coap_pdu_t *pdu = coap_pdu_init(0, 0, 0, COAP_DEFAULT_MTU); in t_oscore_c_5()
511 coap_pdu_t *osc_pdu = NULL; in t_oscore_c_5()
579 coap_pdu_t *pdu = coap_pdu_init(0, 0, 0, COAP_DEFAULT_MTU); in t_oscore_c_6()
580 coap_pdu_t *osc_pdu = NULL; in t_oscore_c_6()
657 coap_pdu_t *incoming_pdu = coap_pdu_init(0, 0, 0, COAP_DEFAULT_MTU); in t_oscore_c_7()
658 coap_pdu_t *pdu = coap_pdu_init(0, 0, 0, COAP_DEFAULT_MTU); in t_oscore_c_7()
659 coap_pdu_t *osc_pdu = NULL; in t_oscore_c_7()
764 coap_pdu_t *outgoing_pdu = coap_pdu_init(0, 0, 0, COAP_DEFAULT_MTU); in t_oscore_c_7_2()
[all …]
Dtest_uri.c340 coap_pdu_t pdu = { in t_parse_uri13()
441 coap_pdu_t pdu = { in t_parse_uri18()
466 coap_pdu_t pdu = { in t_parse_uri19()
486 coap_pdu_t pdu = { in t_parse_uri20()
507 coap_pdu_t pdu = { in t_parse_uri21()
530 coap_pdu_t pdu = { in t_parse_uri22()
551 coap_pdu_t pdu = { in t_parse_uri23()
/third_party/libcoap/doc/
Dupgrade_4.2.1_4.3.0.txt48 coap_pdu_t *request,
51 coap_pdu_t *response) {
56 const coap_pdu_t *request,
58 coap_pdu_t *response) {
82 coap_pdu_t *sent,
83 coap_pdu_t *received,
88 const coap_pdu_t *sent,
89 const coap_pdu_t *received,
111 coap_pdu_t *sent,
117 const coap_pdu_t *sent,
[all …]
/third_party/libcoap/man/
Dcoap_attribute.txt.in109 const coap_pdu_t *request,
111 coap_pdu_t *response);
114 const coap_pdu_t *request,
116 coap_pdu_t *response);
119 const coap_pdu_t *request,
121 coap_pdu_t *response);
124 const coap_pdu_t *request,
126 coap_pdu_t *response);
Dcoap_handler.txt.in80 const coap_pdu_t *incoming_pdu,
82 coap_pdu_t *response_pdu);
131 const coap_pdu_t *sent,
132 const coap_pdu_t *received,
158 const coap_pdu_t *sent,
186 const coap_pdu_t *received,
201 const coap_pdu_t *received,
287 coap_pdu_t *request, coap_string_t *query, coap_pdu_t *response) {
338 static int check_token(coap_pdu_t *received) {
349 coap_pdu_t *sent, coap_pdu_t *received, const coap_mid_t mid) {
Dcoap_resource.txt.in313 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
340 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
354 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
369 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
431 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
451 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
478 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
527 const coap_pdu_t *request, const coap_string_t *query, coap_pdu_t *response) {
/third_party/libcoap/examples/riot/examples_libcoap_client/
Dclient-coap.c49 const coap_pdu_t *sent, in message_handler()
50 const coap_pdu_t *received, in message_handler()
72 const coap_pdu_t *sent COAP_UNUSED, in nack_handler()
120 coap_pdu_t *pdu; in client_coap_init()
/third_party/libcoap/examples/lwip/
Dclient-coap.c35 const coap_pdu_t *sent, in message_handler()
36 const coap_pdu_t *received, in message_handler()
58 const coap_pdu_t *sent COAP_UNUSED, in nack_handler()
105 coap_pdu_t *pdu; in client_coap_init()

123