Home
last modified time | relevance | path

Searched +full:id +full:- +full:token (Results 1 – 25 of 63) sorted by relevance

123

/Zephyr-latest/samples/net/sockets/coap_server/src/
Dtest.c5 * SPDX-License-Identifier: Apache-2.0
23 uint8_t token[COAP_TOKEN_MAX_LEN]; in piggyback_get() local
24 uint16_t id; in piggyback_get() local
32 id = coap_header_get_id(request); in piggyback_get()
33 tkl = coap_header_get_token(request, token); in piggyback_get()
36 LOG_INF("type: %u code %u id %u", type, code, id); in piggyback_get()
46 COAP_VERSION_1, type, tkl, token, in piggyback_get()
47 COAP_RESPONSE_CODE_CONTENT, id); in piggyback_get()
63 /* The response that coap-client expects */ in piggyback_get()
65 "Type: %u\nCode: %u\nMID: %u\n", type, code, id); in piggyback_get()
[all …]
Dobserver.c5 * SPDX-License-Identifier: Apache-2.0
23 uint16_t age, uint16_t id, in send_notification_packet() argument
24 const uint8_t *token, uint8_t tkl, in send_notification_packet() argument
40 id = coap_next_id(); in send_notification_packet()
44 COAP_VERSION_1, type, tkl, token, in send_notification_packet()
45 COAP_RESPONSE_CODE_CONTENT, id); in send_notification_packet()
68 /* The response that coap-client expects */ in send_notification_packet()
92 uint8_t token[COAP_TOKEN_MAX_LEN]; in obs_get() local
93 uint16_t id; in obs_get() local
103 id = coap_header_get_id(request); in obs_get()
[all …]
Dlocation_query.c5 * SPDX-License-Identifier: Apache-2.0
24 uint8_t token[COAP_TOKEN_MAX_LEN]; in location_query_post() local
25 uint16_t id; in location_query_post() local
33 id = coap_header_get_id(request); in location_query_post()
34 tkl = coap_header_get_token(request, token); in location_query_post()
37 LOG_INF("type: %u code %u id %u", type, code, id); in location_query_post()
47 COAP_VERSION_1, type, tkl, token, in location_query_post()
48 COAP_RESPONSE_CODE_CREATED, id); in location_query_post()
67 static const char * const location_query_path[] = { "location-query", NULL };
Dlarge.c5 * SPDX-License-Identifier: Apache-2.0
25 uint8_t token[COAP_TOKEN_MAX_LEN]; in large_get() local
27 uint16_t id; in large_get() local
39 return -EINVAL; in large_get()
44 id = coap_header_get_id(request); in large_get()
45 tkl = coap_header_get_token(request, token); in large_get()
48 LOG_INF("type: %u code %u id %u", type, code, id); in large_get()
52 COAP_VERSION_1, COAP_TYPE_ACK, tkl, token, in large_get()
53 COAP_RESPONSE_CODE_CONTENT, id); in large_get()
55 return -EINVAL; in large_get()
[all …]
Dquery.c5 * SPDX-License-Identifier: Apache-2.0
22 uint8_t token[COAP_TOKEN_MAX_LEN]; in query_get() local
23 uint16_t id; in query_get() local
31 id = coap_header_get_id(request); in query_get()
32 tkl = coap_header_get_token(request, token); in query_get()
36 return -EINVAL; in query_get()
40 LOG_INF("type: %u code %u id %u", type, code, id); in query_get()
62 COAP_VERSION_1, COAP_TYPE_ACK, tkl, token, in query_get()
63 COAP_RESPONSE_CODE_CONTENT, id); in query_get()
79 /* The response that coap-client expects */ in query_get()
[all …]
Dseparate.c5 * SPDX-License-Identifier: Apache-2.0
21 uint8_t token[COAP_TOKEN_MAX_LEN]; in separate_get() local
22 uint16_t id; in separate_get() local
30 id = coap_header_get_id(request); in separate_get()
31 tkl = coap_header_get_token(request, token); in separate_get()
34 LOG_INF("type: %u code %u id %u", type, code, id); in separate_get()
57 /* Re-use the buffer */ in separate_get()
59 COAP_VERSION_1, type, tkl, token, in separate_get()
76 /* The response that coap-client expects */ in separate_get()
78 "Type: %u\nCode: %u\nMID: %u\n", type, code, id); in separate_get()
Dcore.c5 * SPDX-License-Identifier: Apache-2.0
22 uint8_t token[COAP_TOKEN_MAX_LEN]; in core_get() local
23 uint16_t id; in core_get() local
27 id = coap_header_get_id(request); in core_get()
28 tkl = coap_header_get_token(request, token); in core_get()
31 COAP_VERSION_1, COAP_TYPE_ACK, tkl, token, in core_get()
32 COAP_RESPONSE_CODE_CONTENT, id); in core_get()
/Zephyr-latest/subsys/ipc/ipc_service/backends/
Dipc_icmsg_me_initiator.c4 * SPDX-License-Identifier: Apache-2.0
29 struct backend_data_t *dev_data = instance->data; in bound()
31 icmsg_me_icmsg_bound(&dev_data->icmsg_me_data); in bound()
37 struct backend_data_t *dev_data = instance->data; in received()
39 const icmsg_me_ept_id_t *id = data; in received() local
43 if (*id == 0) { in received()
49 id++; in received()
50 icmsg_me_ept_id_t ept_id = *id; in received()
52 r = icmsg_me_get_ept_cfg(&dev_data->icmsg_me_data, ept_id, in received()
58 if (ept && ept->cb.bound) { in received()
[all …]
Dipc_icmsg_me_follower.c4 * SPDX-License-Identifier: Apache-2.0
24 icmsg_me_ept_id_t id; member
40 if (data->ept_disc_loc_cache[i] == NULL) { in get_ept_cached_loc()
43 if (strncmp(data->ept_disc_loc_cache[i]->name, name, in get_ept_cached_loc()
45 return data->ept_disc_loc_cache[i]; in get_ept_cached_loc()
58 if (strncmp(data->ept_disc_rmt_cache[i].name, name, in get_ept_cached_rmt()
60 strlen(data->ept_disc_rmt_cache[i].name) == len) { in get_ept_cached_rmt()
61 return &data->ept_disc_rmt_cache[i]; in get_ept_cached_rmt()
71 if (data->ept_disc_loc_cache[i] == NULL) { in cache_ept_loc()
72 data->ept_disc_loc_cache[i] = ept; in cache_ept_loc()
[all …]
Dipc_rpmsg_static_vrings.c4 * SPDX-License-Identifier: Apache-2.0
19 #include <zephyr/dt-bindings/ipc_service/static_vrings.h>
68 unsigned int id; member
83 rpmsg_ept = &rpmsg_inst->endpoint[i]; in get_ept_slot_with_name()
85 if (strcmp(name, rpmsg_ept->name) == 0) { in get_ept_slot_with_name()
86 return &rpmsg_inst->endpoint[i]; in get_ept_slot_with_name()
103 rpmsg_ept = &rpmsg_inst->endpoint[i]; in check_endpoints_freed()
105 if (rpmsg_ept->bound == true) { in check_endpoints_freed()
115 * - true: when the endpoint was already cached / registered
116 * - false: when the endpoint was never registered before
[all …]
/Zephyr-latest/include/zephyr/drivers/firmware/scmi/
Dprotocol.h4 * SPDX-License-Identifier: Apache-2.0
26 * @param id message ID
28 * @param proto protocol ID
29 * @param token message token
31 #define SCMI_MESSAGE_HDR_MAKE(id, type, proto, token) \ argument
32 (SCMI_FIELD_MAKE(id, GENMASK(7, 0), 0) | \
35 SCMI_FIELD_MAKE(token, GENMASK(9, 0), 18))
56 SCMI_NOT_SUPPORTED = -1,
57 SCMI_INVALID_PARAMETERS = -2,
58 SCMI_DENIED = -3,
[all …]
/Zephyr-latest/subsys/mgmt/hawkbit/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
5 bool "Eclipse hawkBit Firmware Over-the-Air support"
23 hawkBit is a domain independent back-end framework for polling out
83 bool "Use target security token authentication"
85 Use target security token authentication for the hawkBit DDI API.
88 bool "Use gateway security token authentication"
90 Use gateway security token authentication for the hawkBit DDI API.
95 string "Authentication security token"
99 Authentication security token for the configured hawkBit DDI
116 prompt "Source of the Hawkbit device ID"
[all …]
Dshell.c4 * SPDX-License-Identifier: Apache-2.0
25 LOG_INF("Run started from %s", sh->name); in cmd_run()
78 shell_print(sh, "Action id: %d", hawkbit_get_action_id()); in cmd_info()
79 shell_print(sh, "Unique device id: %s", device_id); in cmd_info()
83 shell_print(sh, "DDI security token: %s", in cmd_info()
110 shell_print(sh, "Reset action id %s", (ret == 0) ? "success" : "failed"); in cmd_reset()
121 return -EINVAL; in cmd_set_addr()
133 return -EINVAL; in cmd_set_port()
146 return -EINVAL; in cmd_set_token()
160 SHELL_CMD(ddi_token, NULL, "Set hawkBit DDI Security token", cmd_set_token),
[all …]
/Zephyr-latest/include/zephyr/tracing/
Dtracing_syscall.h4 * SPDX-License-Identifier: Apache-2.0
25 * @param id Syscall ID (as defined in the generated syscall_list.h)
26 * @param name Syscall name as a token (ex: k_thread_create)
29 #define sys_port_trace_syscall_enter(id, name, ...) argument
33 * @param id Syscall ID (as defined in the generated syscall_list.h)
34 * @param name Syscall name as a token (ex: k_thread_create)
38 #define sys_port_trace_syscall_exit(id, name, ...) argument
/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_server.rst13 Zephyr comes with a batteries-included CoAP server, which uses services to listen for CoAP
23 .. code-block:: cfg
32 .. code-block:: c
33 :caption: ``sections-ram.ld``
41 .. code-block:: cmake
45 zephyr_linker_sources(DATA_SECTIONS sections-ram.ld)
54 .. code-block:: c
73 .. code-block:: c
83 uint16_t id;
84 uint8_t token[COAP_TOKEN_MAX_LEN];
[all …]
/Zephyr-latest/tests/net/lib/coap/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
106 const char token[] = "token"; in ZTEST() local
115 strlen(token), token, in ZTEST()
132 zassert_equal(cpkt.hdr_len, COAP_FIXED_HEADER_SIZE + strlen(token), in ZTEST()
141 zassert_equal_ptr(payload_start, cpkt.data + cpkt.offset - payload_len, in ZTEST()
154 uint16_t id; in ZTEST() local
171 id = coap_header_get_id(&cpkt); in ZTEST()
178 zassert_equal(id, 0U, "Packet id doesn't match reference"); in ZTEST()
190 uint16_t id; in ZTEST() local
207 id = coap_header_get_id(&cpkt); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/sip_svc/
Dsip_svc.h2 * Copyright (c) 2022-2023, Intel Corporation.
4 * SPDX-License-Identifier: Apache-2.0
30 * - INVALID: Invalid state before registration.
31 * - IDLE : Initial state.
32 * - OPEN : The client will switch from IDLE to OPEN once it
36 * - ABORT : The client has closed the channel, however, there are
40 * re-open the channel when in ABORT state/
44 #include <zephyr/arch/arm64/arm-smccc.h>
56 * @param c_token Client's token
65 * the service will return a token to the client. The client can then
[all …]
Dsip_svc_controller.h4 * SPDX-License-Identifier: Apache-2.0
38 /* Client id internal to sip_svc*/
39 uint32_t id; member
40 /* Client's token id provided back to client during sip_svc_register() */
41 uint32_t token; member
44 /* Total Number of on-going transaction of the client */
48 /* Transaction id pool for each client */
74 /* Pointer to client id pool */
82 /* Thread id of sip_svc thread */
/Zephyr-latest/include/zephyr/mgmt/hawkbit/
Dconfig.h4 * SPDX-License-Identifier: Apache-2.0
36 /** Security token */
47 * @retval -EAGAIN if probe is currently running.
63 * @retval -EAGAIN if probe is currently running.
82 * @retval -EAGAIN if probe is currently running.
97 * @brief Set the hawkBit security token.
99 * @param token Security token to set.
101 * @retval -EAGAIN if probe is currently running.
103 static inline int hawkbit_set_ddi_security_token(char *token) in hawkbit_set_ddi_security_token() argument
108 .auth_token = token, in hawkbit_set_ddi_security_token()
[all …]
/Zephyr-latest/tests/subsys/sip_svc/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
39 struct private_data *priv = (struct private_data *)response->priv_data; in get_sync_callback()
41 priv->time_end = k_cycle_get_64(); in get_sync_callback()
42 printk("sip_svc version in TFA is %2ld.%02ld\n", response->a2, response->a3); in get_sync_callback()
44 k_sem_give(&(priv->semaphore)); in get_sync_callback()
50 * @param token sip_svc token
52 static void sip_svc_send_sync_request(uint32_t token) in sip_svc_send_sync_request() argument
64 tot_time = (struct total_time *)sip_svc_get_priv_data(ctrl, token); in sip_svc_send_sync_request()
67 err = sip_svc_open(ctrl, token, K_FOREVER); in sip_svc_send_sync_request()
77 trans_id = sip_svc_send(ctrl, token, &req, get_sync_callback); in sip_svc_send_sync_request()
[all …]
/Zephyr-latest/include/zephyr/net/
Dcoap.h5 * SPDX-License-Identifier: Apache-2.0
47 COAP_OPTION_IF_MATCH = 1, /**< If-Match */
48 COAP_OPTION_URI_HOST = 3, /**< Uri-Host */
50 COAP_OPTION_IF_NONE_MATCH = 5, /**< If-None-Match */
52 COAP_OPTION_URI_PORT = 7, /**< Uri-Port */
53 COAP_OPTION_LOCATION_PATH = 8, /**< Location-Path */
54 COAP_OPTION_URI_PATH = 11, /**< Uri-Path */
55 COAP_OPTION_CONTENT_FORMAT = 12, /**< Content-Format */
56 COAP_OPTION_MAX_AGE = 14, /**< Max-Age */
57 COAP_OPTION_URI_QUERY = 15, /**< Uri-Query */
[all …]
/Zephyr-latest/subsys/sip_svc/
Dsip_svc_subsys.c2 * Copyright (c) 2022-2023, Intel Corporation.
4 * SPDX-License-Identifier: Apache-2.0
14 * (1) register a client, service returns a token
16 * (3) client send request with callback, service returns transaction id
35 * - if the client is running with a thread, callback should ensure
37 * - response data pointer is not retained after the callback function.
39 * - callback responsible to free the asynchronous response data memory
46 * ------------------------------------------------------
52 * ------------------------------------------------------
56 * ----------
[all …]
/Zephyr-latest/subsys/net/lib/coap/
Dcoap.c4 * SPDX-License-Identifier: Apache-2.0
32 /* Values as per RFC 7252, section-3.1.
34 * Option Delta/Length: 4-bit unsigned integer. A value between 0 and
37 * 13: An 8-bit unsigned integer precedes the Option Value and indicates
39 * 14: A 16-bit unsigned integer in network byte order precedes the
56 /* The CoAP message ID that is incremented each time coap_next_id() is called. */
73 cpkt->data[offset] = data; in encode_u8()
74 ++cpkt->offset; in encode_u8()
79 cpkt->data[offset] = data >> 8; in encode_be16()
80 cpkt->data[offset + 1] = (uint8_t)data; in encode_be16()
[all …]
/Zephyr-latest/.github/workflows/
Dscorecards.yml2 # by a third-party and are governed by separate terms of service, privacy
5 name: Scorecards supply-chain security
7 # For Branch-Protection check. Only the default branch is supported. See
8 # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
13 - cron: '43 7 * * 6'
16 - main
18 permissions: read-all
23 runs-on: ubuntu-latest
26 security-events: write
27 # Needed for GitHub OIDC token if publish_results is true
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_observation.c3 * Copyright (c) 2018-2019 Foundries.io
5 * SPDX-License-Identifier: Apache-2.0
85 /* write-attribute related definitions */
125 out->pmin = write_attr_pool[i].int_val; in update_attrs()
128 out->pmax = write_attr_pool[i].int_val; in update_attrs()
131 out->lt = write_attr_pool[i].float_val; in update_attrs()
134 out->gt = write_attr_pool[i].float_val; in update_attrs()
137 out->st = write_attr_pool[i].float_val; in update_attrs()
141 return -EINVAL; in update_attrs()
145 out->flags |= BIT(write_attr_pool[i].type); in update_attrs()
[all …]

123