/Zephyr-latest/samples/net/sockets/coap_server/src/ |
D | test.c | 27 uint8_t tkl; in piggyback_get() local 33 tkl = coap_header_get_token(request, token); in piggyback_get() 46 COAP_VERSION_1, type, tkl, token, in piggyback_get() 88 uint8_t tkl; in test_del() local 97 tkl = coap_header_get_token(request, token); in test_del() 110 COAP_VERSION_1, type, tkl, token, in test_del() 132 uint8_t tkl; in test_put() local 139 tkl = coap_header_get_token(request, token); in test_put() 157 COAP_VERSION_1, type, tkl, token, in test_put() 184 uint8_t tkl; in test_post() local [all …]
|
D | observer.c | 24 const uint8_t *token, uint8_t tkl, in send_notification_packet() argument 44 COAP_VERSION_1, type, tkl, token, in send_notification_packet() 96 uint8_t tkl; in obs_get() local 104 tkl = coap_header_get_token(request, token); in obs_get() 112 id, token, tkl, true); in obs_get() 122 observer->token, observer->tkl, false); in obs_notify()
|
D | core.c | 24 uint8_t tkl; in core_get() local 28 tkl = coap_header_get_token(request, token); in core_get() 31 COAP_VERSION_1, COAP_TYPE_ACK, tkl, token, in core_get()
|
D | location_query.c | 28 uint8_t tkl; in location_query_post() local 34 tkl = coap_header_get_token(request, token); in location_query_post() 47 COAP_VERSION_1, type, tkl, token, in location_query_post()
|
D | large.c | 30 uint8_t tkl; in large_get() local 45 tkl = coap_header_get_token(request, token); in large_get() 52 COAP_VERSION_1, COAP_TYPE_ACK, tkl, token, in large_get() 108 uint8_t tkl; in large_update_put() local 145 tkl = coap_header_get_token(request, token); in large_update_put() 188 uint8_t tkl; in large_create_post() local 219 tkl = coap_header_get_token(request, token); in large_create_post()
|
D | separate.c | 25 uint8_t tkl; in separate_get() local 31 tkl = coap_header_get_token(request, token); in separate_get() 59 COAP_VERSION_1, type, tkl, token, in separate_get()
|
D | query.c | 26 uint8_t tkl; in query_get() local 32 tkl = coap_header_get_token(request, token); in query_get() 62 COAP_VERSION_1, COAP_TYPE_ACK, tkl, token, in query_get()
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_observation.c | 410 if (!observe_node_data[i].tkl) { in engine_allocate_observer() 444 struct lwm2m_ctx *ctx, uint8_t tkl, uint16_t format, in engine_observe_node_init() argument 449 memcpy(obs->token, token, tkl); in engine_observe_node_init() 450 obs->tkl = tkl; in engine_observe_node_init() 473 LOG_DBG("token:'%s' addr:%s", sprint_token(token, tkl), in engine_observe_node_init() 547 const uint8_t *token, uint8_t tkl) in engine_observe_node_discover() argument 576 if (token && memcmp(obs->token, token, tkl)) { in engine_observe_node_discover() 586 static int engine_add_observer(struct lwm2m_message *msg, const uint8_t *token, uint8_t tkl, in engine_add_observer() argument 601 if (!token || (tkl == 0U || tkl > MAX_TOKEN_LEN)) { in engine_add_observer() 602 LOG_ERR("token(%p) and token length(%u) must be valid.", token, tkl); in engine_add_observer() [all …]
|
D | lwm2m_observation.h | 24 uint8_t tkl; member 46 const uint8_t *token, uint8_t tkl); 48 int engine_remove_observer_by_token(struct lwm2m_ctx *ctx, const uint8_t *token, uint8_t tkl);
|
D | lwm2m_pull_context.c | 94 static int transfer_request(struct coap_block_context *ctx, uint8_t *token, uint8_t tkl, in transfer_request() argument 116 msg->tkl = tkl; in transfer_request() 225 uint8_t tkl; in do_firmware_transfer_reply_cb() local 235 tkl = coap_header_get_token(check_response, token); in do_firmware_transfer_reply_cb() 238 if (!tkl && coap_header_get_type(response) == COAP_TYPE_ACK) { in do_firmware_transfer_reply_cb() 341 ret = transfer_request(&context.block_ctx, token, tkl, in do_firmware_transfer_reply_cb()
|
D | lwm2m_util.h | 46 char *sprint_token(const uint8_t *token, uint8_t tkl);
|
D | lwm2m_util.c | 557 char *sprint_token(const uint8_t *token, uint8_t tkl) in sprint_token() argument 562 if (token && tkl != 0) { in sprint_token() 565 tkl = MIN(tkl, sizeof(buf) / 2 - 1); in sprint_token() 567 for (i = 0; i < tkl; i++) { in sprint_token()
|
D | lwm2m_message_handling.c | 293 uint8_t tkl; in build_msg_block_for_send() local 322 tkl = coap_header_get_token(msg->in.in_cpkt, token); in build_msg_block_for_send() 325 tkl = LWM2M_MSG_TOKEN_GENERATE_NEW; in build_msg_block_for_send() 328 msg->tkl = tkl; in build_msg_block_for_send() 624 if (msg->tkl == LWM2M_MSG_TOKEN_GENERATE_NEW) { in lwm2m_init_message() 627 } else if (msg->token && msg->tkl != 0) { in lwm2m_init_message() 628 tokenlen = msg->tkl; in lwm2m_init_message() 2312 uint8_t tkl = 0U; in handle_request() local 2327 tkl = coap_header_get_token(msg->in.in_cpkt, token); in handle_request() 2328 if (tkl) { in handle_request() [all …]
|
D | lwm2m_rd_client.c | 745 msg->tkl = LWM2M_MSG_TOKEN_GENERATE_NEW; in sm_send_bootstrap_registration() 879 msg->tkl = LWM2M_MSG_TOKEN_GENERATE_NEW; in sm_send_registration() 1234 msg->tkl = LWM2M_MSG_TOKEN_GENERATE_NEW; in sm_do_deregister()
|
D | lwm2m_object.h | 519 uint8_t tkl; member
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_server.c | 87 const uint8_t *token, uint8_t tkl) in coap_service_remove_observer() argument 91 if (tkl > 0 && addr != NULL) { in coap_service_remove_observer() 93 obs = coap_find_observer(service->data->observers, MAX_OBSERVERS, addr, token, tkl); in coap_service_remove_observer() 94 } else if (tkl > 0) { in coap_service_remove_observer() 97 tkl); in coap_service_remove_observer() 176 uint8_t tkl; in coap_server_process() local 180 tkl = coap_header_get_token(&request, token); in coap_server_process() 181 coap_service_remove_observer(service, NULL, &client_addr, token, tkl); in coap_server_process() 607 uint8_t tkl; in coap_resource_parse_observe() local 630 tkl = coap_header_get_token(request, token); in coap_resource_parse_observe() [all …]
|
D | coap.c | 224 uint8_t tkl; in coap_ack_init() local 229 tkl = code ? coap_header_get_token(req, token) : 0; in coap_ack_init() 231 return coap_packet_init(cpkt, data, max_len, ver, COAP_TYPE_ACK, tkl, in coap_ack_init() 752 uint8_t tkl; in coap_packet_parse() local 775 tkl = cpkt->data[0] & 0x0f; in coap_packet_parse() 776 if (tkl > 8) { in coap_packet_parse() 780 cpkt->hdr_len = BASIC_HEADER_SIZE + tkl; in coap_packet_parse() 993 uint8_t tkl; in coap_header_get_token() local 999 tkl = cpkt->data[0] & 0x0f; in coap_header_get_token() 1000 if (tkl > COAP_TOKEN_MAX_LEN) { in coap_header_get_token() [all …]
|
D | coap_link_format.c | 448 uint8_t tkl; in coap_well_known_core_get_len() local 472 tkl = coap_header_get_token(request, token); in coap_well_known_core_get_len() 485 tkl, token, COAP_RESPONSE_CODE_CONTENT, id); in coap_well_known_core_get_len() 646 uint8_t tkl; in coap_well_known_core_get_len() local 656 tkl = coap_header_get_token(request, token); in coap_well_known_core_get_len() 669 tkl, token, COAP_RESPONSE_CODE_CONTENT, id); in coap_well_known_core_get_len()
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | coap_server.rst | 85 uint8_t tkl, type; 89 tkl = coap_header_get_token(request, token); 94 coap_packet_init(&response, data, sizeof(data), COAP_VERSION_1, type, tkl, token, 147 uint16_t age, uint16_t id, const uint8_t *token, uint8_t tkl, 165 coap_packet_init(&response, data, sizeof(data), COAP_VERSION_1, type, tkl, token, 195 uint8_t tkl; 202 tkl = coap_header_get_token(request, token); 205 id, token, tkl, true); 211 observer->token, observer->tkl, false);
|
/Zephyr-latest/tests/net/lib/coap/src/ |
D | main.c | 230 uint8_t tkl; in ZTEST() local 265 tkl = coap_header_get_token(&cpkt, (uint8_t *)token); in ZTEST() 267 zassert_equal(tkl, 5U, "Token length doesn't match reference"); in ZTEST() 268 zassert_mem_equal(token, "token", tkl, in ZTEST() 545 uint8_t tkl; in prepare_block1_response() local 557 tkl = coap_header_get_token(req, token); in prepare_block1_response() 560 COAP_TYPE_ACK, tkl, token, in prepare_block1_response() 668 uint8_t tkl; in prepare_block2_response() local 683 tkl = coap_header_get_token(req, token); in prepare_block2_response() 686 COAP_TYPE_ACK, tkl, token, in prepare_block2_response() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | coap.h | 306 uint8_t tkl; member 403 uint8_t tkl; member
|
/Zephyr-latest/samples/net/sockets/coap_client/src/ |
D | coap-client.c | 553 reply->tkl, reply->token, in send_obs_reset_coap_request()
|