Home
last modified time | relevance | path

Searched refs:in_cpkt (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_plain_text.c186 if (in->offset >= in->in_cpkt->offset) { in plain_text_read_int()
194 while (in->offset < in->in_cpkt->offset) { in plain_text_read_int()
195 if (buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), in plain_text_read_int()
254 coap_packet_get_payload(in->in_cpkt, &in_len); in get_string()
261 if (buf_read(value, in_len, CPKT_BUF_READ(in->in_cpkt), in get_string()
278 if (in->offset >= in->in_cpkt->offset) { in get_float()
283 while (in->offset < in->in_cpkt->offset) { in get_float()
284 if (buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), in get_float()
326 if (in->offset >= in->in_cpkt->offset) { in get_bool()
331 ret = buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), &in->offset); in get_bool()
Dlwm2m_rw_oma_tlv.c229 ret = buf_read_u8(&buf[0], CPKT_BUF_READ(in->in_cpkt), &tmp_offset); in oma_tlv_get()
238 ret = buf_read_u8(&buf[1], CPKT_BUF_READ(in->in_cpkt), &tmp_offset); in oma_tlv_get()
247 ret = buf_read_u8(&buf[1], CPKT_BUF_READ(in->in_cpkt), in oma_tlv_get()
262 ret = buf_read_u8(&buf[1], CPKT_BUF_READ(in->in_cpkt), in oma_tlv_get()
600 CPKT_BUF_READ(in->in_cpkt), &in->offset); in get_number()
673 ret = buf_read(buf, tlv.length, CPKT_BUF_READ(in->in_cpkt), in get_string()
703 ret = buf_read(buf, tlv.length, CPKT_BUF_READ(in->in_cpkt), in get_float()
826 if (buf_read_u8(&read_char, CPKT_BUF_READ(msg->in.in_cpkt), in do_write_op_tlv_dummy_read()
Dlwm2m_message_handling.c321 msg->mid = coap_header_get_id(msg->in.in_cpkt); in build_msg_block_for_send()
322 tkl = coap_header_get_token(msg->in.in_cpkt, token); in build_msg_block_for_send()
2086 payload_start = coap_packet_get_payload(msg->in.in_cpkt, &payload_len); in parse_write_op()
2088 msg->in.offset = payload_start - msg->in.in_cpkt->data; in parse_write_op()
2090 msg->in.offset = msg->in.in_cpkt->offset; in parse_write_op()
2094 block_opt = coap_get_option_int(msg->in.in_cpkt, COAP_OPTION_BLOCK1); in parse_write_op()
2148 r = coap_update_from_block(msg->in.in_cpkt, &block_ctx->ctx); in parse_write_op()
2197 payload_start = coap_packet_get_payload(msg->in.in_cpkt, &payload_len); in do_composite_write_op()
2199 msg->in.offset = payload_start - msg->in.in_cpkt->data; in do_composite_write_op()
2201 msg->in.offset = msg->in.in_cpkt->offset; in do_composite_write_op()
[all …]
Dlwm2m_rw_opaque.c61 coap_packet_get_payload(in->in_cpkt, &in_len); in get_opaque()
Dlwm2m_obj_gateway.c156 ret = coap_find_options(msg->in.in_cpkt, COAP_OPTION_URI_PATH, options, in lwm2m_gw_handle_req()
Dlwm2m_object.h153 #define ICTX_BUF_R_LEFT_SZ(i_ctx) ((i_ctx)->in_cpkt->max_len - (i_ctx)->offset)
154 #define ICTX_BUF_R_PTR(i_ctx) ((i_ctx)->in_cpkt->data + (i_ctx)->offset)
464 struct coap_packet *in_cpkt; member
Dlwm2m_rw_cbor.c35 #define ICTX_CBOR_R_SZ(pos, ictx) ((size_t)pos - (size_t)(ictx)->in_cpkt->data - (ictx)->offset)
Dlwm2m_registry.c1093 uint16_t remaining = in->in_cpkt->max_len - in->offset; in lwm2m_engine_get_opaque_more()
1109 if (buf_read(buf, in_len, CPKT_BUF_READ(in->in_cpkt), &in->offset) < 0) { in lwm2m_engine_get_opaque_more()
Dlwm2m_rw_senml_json.c1485 data_ptr = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in do_write_op_senml_json()
1574 data_ptr = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in json_parse_composite_read_paths()
Dlwm2m_rw_json.c922 data_ptr = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in do_write_op_json()
Dlwm2m_rw_senml_cbor.c857 payload = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in parse_composite_read_paths()
Dlwm2m_observation.c1156 nr_opt = coap_find_options(msg->in.in_cpkt, COAP_OPTION_URI_QUERY, options, NR_LWM2M_ATTR); in lwm2m_write_attr_handler()
/Zephyr-latest/tests/net/lib/lwm2m/content_plain_text/src/
Dmain.c26 test_in.in_cpkt = &test_packet; in context_reset()
/Zephyr-latest/tests/net/lib/lwm2m/content_json/src/
Dmain.c119 test_msg.in.in_cpkt = &test_msg.cpkt; in context_reset()
/Zephyr-latest/tests/net/lib/lwm2m/content_raw_cbor/src/
Dmain.c34 test_in.in_cpkt = &test_packet; in context_reset()
/Zephyr-latest/tests/net/lib/lwm2m/content_senml_cbor/src/
Dmain.c135 test_msg.in.in_cpkt = &test_msg.cpkt; in context_reset()
/Zephyr-latest/tests/net/lib/lwm2m/content_oma_tlv/src/
Dmain.c46 test_in.in_cpkt = &test_packet; in context_reset()