Home
last modified time | relevance | path

Searched refs:tkl (Results 1 – 10 of 10) sorted by relevance

/Zephyr-Core-2.7.6/samples/net/sockets/coap_server/src/
Dcoap-server.c219 uint8_t tkl; in piggyback_get() local
225 tkl = coap_header_get_token(request, token); in piggyback_get()
243 COAP_VERSION_1, type, tkl, token, in piggyback_get()
288 uint8_t tkl; in test_del() local
297 tkl = coap_header_get_token(request, token); in test_del()
315 COAP_VERSION_1, type, tkl, token, in test_del()
340 uint8_t tkl; in test_put() local
347 tkl = coap_header_get_token(request, token); in test_put()
370 COAP_VERSION_1, type, tkl, token, in test_put()
400 uint8_t tkl; in test_post() local
[all …]
/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/
Dlwm2m_obj_firmware_pull.c66 uint8_t *token, uint8_t tkl, in transfer_request() argument
88 msg->tkl = tkl; in transfer_request()
206 uint8_t tkl; in do_firmware_transfer_reply_cb() local
217 tkl = coap_header_get_token(check_response, token); in do_firmware_transfer_reply_cb()
220 if (!tkl && coap_header_get_type(response) == COAP_TYPE_ACK) { in do_firmware_transfer_reply_cb()
322 ret = transfer_request(&firmware_block_ctx, token, tkl, in do_firmware_transfer_reply_cb()
350 msg->token, msg->tkl, in do_transmit_timeout_cb()
Dlwm2m_engine.c84 uint8_t tkl; member
174 static char *sprint_token(const uint8_t *token, uint8_t tkl) in sprint_token() argument
179 if (token && tkl != 0) { in sprint_token()
182 tkl = MIN(tkl, sizeof(buf) / 2 - 1); in sprint_token()
184 for (i = 0; i < tkl; i++) { in sprint_token()
221 static int init_block_ctx(const uint8_t *token, uint8_t tkl, in init_block_ctx() argument
230 if (block1_contexts[i].tkl == 0U) { in init_block_ctx()
250 (*ctx)->tkl = tkl; in init_block_ctx()
251 memcpy((*ctx)->token, token, tkl); in init_block_ctx()
261 static int get_block_ctx(const uint8_t *token, uint8_t tkl, in get_block_ctx() argument
[all …]
Dlwm2m_rd_client.c599 msg->tkl = LWM2M_MSG_TOKEN_GENERATE_NEW; in sm_send_bootstrap_registration()
712 msg->tkl = LWM2M_MSG_TOKEN_GENERATE_NEW; in sm_send_registration()
926 msg->tkl = LWM2M_MSG_TOKEN_GENERATE_NEW; in sm_do_deregister()
Dlwm2m_object.h412 uint8_t tkl; member
473 uint8_t tkl; member
/Zephyr-Core-2.7.6/subsys/net/lib/coap/
Dcoap.c154 uint8_t tkl; in coap_ack_init() local
159 tkl = code ? coap_header_get_token(req, token) : 0; in coap_ack_init()
161 return coap_packet_init(cpkt, data, max_len, ver, COAP_TYPE_ACK, tkl, in coap_ack_init()
555 uint8_t tkl; in coap_packet_parse() local
578 tkl = cpkt->data[0] & 0x0f; in coap_packet_parse()
579 if (tkl > 8) { in coap_packet_parse()
583 cpkt->hdr_len = BASIC_HEADER_SIZE + tkl; in coap_packet_parse()
684 uint8_t tkl; in coap_header_get_token() local
690 tkl = cpkt->data[0] & 0x0f; in coap_header_get_token()
691 if (tkl) { in coap_header_get_token()
[all …]
Dcoap_link_format.c448 uint8_t tkl; in coap_well_known_core_get() local
472 tkl = coap_header_get_token(request, token); in coap_well_known_core_get()
485 tkl, token, COAP_RESPONSE_CODE_CONTENT, id); in coap_well_known_core_get()
643 uint8_t tkl; in coap_well_known_core_get() local
652 tkl = coap_header_get_token(request, token); in coap_well_known_core_get()
665 tkl, token, COAP_RESPONSE_CODE_CONTENT, id); in coap_well_known_core_get()
/Zephyr-Core-2.7.6/tests/net/lib/coap/src/
Dmain.c217 uint8_t tkl; in test_parse_simple_pdu() local
252 tkl = coap_header_get_token(&cpkt, (uint8_t *)token); in test_parse_simple_pdu()
254 zassert_equal(tkl, 5U, "Token length doesn't match reference"); in test_parse_simple_pdu()
255 zassert_mem_equal(token, "token", tkl, in test_parse_simple_pdu()
494 uint8_t tkl; in prepare_block1_response() local
506 tkl = coap_header_get_token(req, token); in prepare_block1_response()
509 COAP_TYPE_ACK, tkl, token, in prepare_block1_response()
614 uint8_t tkl; in prepare_block2_response() local
627 tkl = coap_header_get_token(req, token); in prepare_block2_response()
630 COAP_TYPE_ACK, tkl, token, in prepare_block2_response()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/coap_client/src/
Dcoap-client.c391 static int send_obs_reply_ack(uint16_t id, uint8_t *token, uint8_t tkl) in send_obs_reply_ack() argument
403 COAP_VERSION_1, COAP_TYPE_ACK, tkl, token, 0, id); in send_obs_reply_ack()
425 uint8_t tkl; in process_obs_coap_reply() local
460 tkl = coap_header_get_token(&reply, token); in process_obs_coap_reply()
467 ret = send_obs_reply_ack(id, token, tkl); in process_obs_coap_reply()
/Zephyr-Core-2.7.6/include/net/
Dcoap.h221 uint8_t tkl; member
285 uint8_t tkl; member