/Zephyr-Core-2.7.6/subsys/net/ip/ |
D | icmpv4.c | 79 uint8_t opt_len, in icmpv4_update_record_route() argument 96 if (net_pkt_write_u8(reply, opt_len + 2U)) { in icmpv4_update_record_route() 114 if (ptr >= opt_len) { in icmpv4_update_record_route() 122 if (net_pkt_write(reply, opt_data + offset, opt_len)) { in icmpv4_update_record_route() 126 len += opt_len; in icmpv4_update_record_route() 137 if ((ptr + addr_len) > opt_len) { in icmpv4_update_record_route() 166 if (opt_len > offset) { in icmpv4_update_record_route() 167 if (net_pkt_write(reply, opt_data + offset, opt_len - offset)) { in icmpv4_update_record_route() 172 len += opt_len - offset; in icmpv4_update_record_route() 187 uint8_t opt_len, in icmpv4_update_time_stamp() argument [all …]
|
D | ipv4.c | 145 uint8_t opt_len = 0U; in net_ipv4_parse_hdr_options() local 156 if (net_pkt_read_u8(pkt, &opt_len)) { in net_ipv4_parse_hdr_options() 160 if (opt_len < 2U || total_opts_len < 1U) { in net_ipv4_parse_hdr_options() 164 opt_len -= 2U; in net_ipv4_parse_hdr_options() 168 if (opt_len > total_opts_len) { in net_ipv4_parse_hdr_options() 187 if (net_pkt_read(pkt, opt_data, opt_len)) { in net_ipv4_parse_hdr_options() 191 if (cb(opt_type, opt_data, opt_len, user_data)) { in net_ipv4_parse_hdr_options() 197 if (net_pkt_skip(pkt, opt_len)) { in net_ipv4_parse_hdr_options() 204 total_opts_len -= opt_len; in net_ipv4_parse_hdr_options()
|
D | ipv6.c | 195 uint8_t opt_type, opt_len; in ipv6_handle_ext_hdr_options() local 207 if (net_pkt_read_u8(pkt, &opt_len)) { in ipv6_handle_ext_hdr_options() 219 length += opt_len + 2; in ipv6_handle_ext_hdr_options() 220 net_pkt_skip(pkt, opt_len); in ipv6_handle_ext_hdr_options() 229 if (opt_len > (exthdr_len - (1 + 1 + 1 + 1))) { in ipv6_handle_ext_hdr_options() 238 if (net_pkt_skip(pkt, opt_len)) { in ipv6_handle_ext_hdr_options() 242 length += opt_len + 2; in ipv6_handle_ext_hdr_options()
|
D | ipv4.h | 176 uint8_t opt_len,
|
D | tcp2.c | 614 uint8_t opt, opt_len; in tcp_options_check() local 621 for ( ; options && len >= 1; options += opt_len, len -= opt_len) { in tcp_options_check() 627 opt_len = 1; in tcp_options_check() 636 opt_len = options[1]; in tcp_options_check() 638 NET_DBG("opt: %hu, opt_len: %hu", (uint16_t)opt, (uint16_t)opt_len); in tcp_options_check() 640 if (opt_len < 2 || opt_len > len) { in tcp_options_check() 647 if (opt_len != 4) { in tcp_options_check() 658 if (opt_len != 3) { in tcp_options_check()
|
/Zephyr-Core-2.7.6/subsys/net/lib/coap/ |
D | coap.c | 202 uint8_t opt_len; in encode_option() local 208 len_size = encode_extended_option(len, &opt_len, &len_ext); in encode_option() 211 option_header_set_len(&opt, opt_len); in encode_option() 274 if (cpkt->opt_len) { in coap_packet_append_option() 283 cpkt->opt_len += r; in coap_packet_append_option() 445 uint16_t max_len, uint16_t *opt_delta, uint16_t *opt_len, in parse_option() argument 465 *opt_len += 1U; in parse_option() 486 if (u16_add_overflow(*opt_len, hdr_len, opt_len)) { in parse_option() 499 if (u16_add_overflow(*opt_len, hdr_len, opt_len)) { in parse_option() 505 u16_add_overflow(*opt_len, len, opt_len)) { in parse_option() [all …]
|
/Zephyr-Core-2.7.6/subsys/net/l2/ppp/ |
D | options.c | 28 uint8_t opt_type, opt_len, opt_val_len; in ppp_parse_options() local 47 ret = net_pkt_read_u8(pkt, &opt_len); in ppp_parse_options() 54 opt_val_len = opt_len - sizeof(opt_type) - sizeof(opt_len); in ppp_parse_options() 60 opt_len); in ppp_parse_options() 70 remaining -= opt_len; in ppp_parse_options()
|
/Zephyr-Core-2.7.6/subsys/bluetooth/host/ |
D | l2cap_br.c | 797 uint16_t flags, scid, result, opt_len; in l2cap_br_conf_rsp() local 807 opt_len = len - sizeof(*rsp); in l2cap_br_conf_rsp() 810 result, opt_len); in l2cap_br_conf_rsp() 945 uint16_t flags, dcid, opt_len, hint, result = BT_L2CAP_CONF_SUCCESS; in l2cap_br_conf_req() local 955 opt_len = len - sizeof(*req); in l2cap_br_conf_req() 957 BT_DBG("dcid 0x%04x flags 0x%02x len %u", dcid, flags, opt_len); in l2cap_br_conf_req() 971 if (!opt_len) { in l2cap_br_conf_req()
|
/Zephyr-Core-2.7.6/tests/net/lib/coap/src/ |
D | main.c | 82 zassert_equal(cpkt.opt_len, 0, "Invalid options length"); in test_build_empty_pdu() 121 zassert_equal(cpkt.opt_len, 1, "Invalid options length"); in test_build_simple_pdu() 153 zassert_equal(cpkt.opt_len, 0, "Invalid options length"); in test_parse_empty_pdu() 189 zassert_equal(cpkt.opt_len, 1, "Invalid options length"); in test_parse_empty_pdu_1() 232 zassert_equal(cpkt.opt_len, 3, "Invalid options length"); in test_parse_simple_pdu()
|
/Zephyr-Core-2.7.6/include/net/ |
D | coap.h | 232 uint16_t opt_len; /* Total options length (delta + len + value) */ member
|