Home
last modified time | relevance | path

Searched refs:net_pkt_read (Results 1 – 25 of 61) sorted by relevance

123

/Zephyr-latest/tests/net/icmpv4/src/
Dmain.c191 ret = net_pkt_read(pkt, &icmp_hdr, sizeof(struct net_icmp_hdr)); in verify_echo_reply()
207 ret = net_pkt_read(pkt, buf, payload_len); in verify_echo_reply()
255 ret = net_pkt_read(pkt, &icmp_hdr, sizeof(struct net_icmp_hdr)); in verify_echo_reply_with_opts()
271 ret = net_pkt_read(pkt, buf, payload_len); in verify_echo_reply_with_opts()
/Zephyr-latest/subsys/net/lib/socks/
Dsocks.c34 if (net_pkt_read(pkt, (uint8_t *)method_rsp, in socks5_method_rsp_cb()
62 if (net_pkt_read(pkt, (uint8_t *)cmd_rsp, size)) { in socks5_cmd_rsp_cb()
/Zephyr-latest/subsys/net/l2/ppp/
Dipcp.c65 ret = net_pkt_read(pkt, &ack_addr, sizeof(ack_addr)); in ipcp_ack_check_address()
105 return net_pkt_read(pkt, addr, sizeof(*addr)); in ipcp_nak_override_address()
157 ret = net_pkt_read(pkt, &data->addr, sizeof(data->addr)); in ipcp_dns_address_parse()
182 ret = net_pkt_read(pkt, &data->addr, sizeof(data->addr)); in ipcp_ip_address_parse()
Dlcp.c234 ret = net_pkt_read(pkt, &mru, sizeof(mru)); in lcp_ack_mru()
257 ret = net_pkt_read(pkt, &mru, sizeof(mru)); in lcp_nak_mru()
Dipv6cp.c62 ret = net_pkt_read(pkt, ack_iid, sizeof(ack_iid)); in ipv6cp_ack_iid()
98 ret = net_pkt_read(pkt, data->iface_id, sizeof(data->iface_id)); in ipv6cp_interface_identifier_parse()
/Zephyr-latest/tests/subsys/modem/modem_ppp/src/
Dmain.c323 net_pkt_read(pkt, buffer, pkt_len); in ZTEST()
351 net_pkt_read(pkt, buffer, pkt_len); in ZTEST()
407 net_pkt_read(pkt, buffer, pkt_len); in ZTEST()
/Zephyr-latest/tests/net/ipv4_fragment/src/
Dmain.c312 net_pkt_read(recv_pkt, buf_ip_src, sizeof(buf_ip_src)); in sender_iface()
313 net_pkt_read(recv_pkt, buf_ip_dst, sizeof(buf_ip_dst)); in sender_iface()
408 net_pkt_read(pkt, verify_buf, NET_IPV4H_LEN); in udp_data_received()
418 net_pkt_read(pkt, verify_buf, sizeof(verify_buf)); in udp_data_received()
489 net_pkt_read(pkt, verify_buf, NET_IPV4H_LEN); in tcp_data_received()
511 net_pkt_read(pkt, verify_buf, sizeof(verify_buf)); in tcp_data_received()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4.c929 if (net_pkt_read(pkt, cb->data, MIN(cb->max_length, len))) { in dhcpv4_parse_option_vendor()
969 if (net_pkt_read(pkt, cookie, sizeof(cookie)) || in dhcpv4_parse_options()
996 if (net_pkt_read(pkt, cb->data, in dhcpv4_parse_options()
1018 if (net_pkt_read(pkt, netmask.s4_addr, length)) { in dhcpv4_parse_options()
1043 if (net_pkt_read(pkt, router.s4_addr, 4) || in dhcpv4_parse_options()
1095 if (net_pkt_read(pkt, dnses[i].sin_addr.s4_addr, addr_size)) { in dhcpv4_parse_options()
1135 if (net_pkt_read(pkt, log_server.sin_addr.s4_addr, 4) < 0 || in dhcpv4_parse_options()
1167 if (net_pkt_read(pkt, iface->config.dhcpv4.ntp_addr.s4_addr, 4) < 0 || in dhcpv4_parse_options()
1259 if (net_pkt_read( in dhcpv4_parse_options()
/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c976 net_pkt_read(recv_pkt, buf_ip_src, sizeof(buf_ip_src)); in test_pkt_loopback()
977 net_pkt_read(recv_pkt, buf_ip_dst, sizeof(buf_ip_dst)); in test_pkt_loopback()
1522 net_pkt_read(pkt, verify_buf, NET_IPV6H_LEN); in udp_data_received()
1523 net_pkt_read(pkt, verify_buf, NET_UDPH_LEN); in udp_data_received()
1537 net_pkt_read(pkt, verify_buf, expected_data_len); in udp_data_received()
2260 net_pkt_read(pkt, verify_buf, NET_IPV6H_LEN); in handle_ipv6_echo_reply()
2261 net_pkt_read(pkt, verify_buf, ECHO_REPLY_H_LEN); in handle_ipv6_echo_reply()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_eem.c119 if (net_pkt_read(pkt, &tx_buf[b_idx], net_pkt_get_len(pkt))) { in eem_send()
Dfunction_ecm.c260 if (net_pkt_read(pkt, tx_buf, len)) { in ecm_send()
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c702 zassert_true(net_pkt_read(dummy_pkt, in ZTEST()
954 zassert_true(net_pkt_read(pkt, small_buffer, 4) == 0, "Read failed"); in ZTEST()
963 zassert_true(net_pkt_read(pkt, small_buffer, 8) == 0, "Read failed"); in ZTEST()
1010 zassert_true(net_pkt_read(pkt_dst, small_buffer, 4) == 0, in ZTEST()
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c455 if (net_pkt_read(pkt, buf, len)) { in verify_option()
559 ret = net_pkt_read(pkt, cookie_buf, SIZE_OF_MAGIC_COOKIE); in verify_offer()
742 ret = net_pkt_read(pkt, cookie_buf, SIZE_OF_MAGIC_COOKIE); in verify_ack()
/Zephyr-latest/tests/boards/espressif/wifi/src/
Dmain.c136 net_pkt_read(pkt, buf, MIN(data_len, sizeof(buf))); in icmp_event()
/Zephyr-latest/drivers/ethernet/
Deth_litex_liteeth.c86 net_pkt_read(pkt, config->tx_buf[context->txslot], len); in eth_tx()
Deth_nxp_imx_netc.c241 ret = net_pkt_read(pkt, buff.buffer, pkt_len); in netc_eth_tx()
Deth_nxp_s32_netc.c151 res = net_pkt_read(pkt, buf.data, pkt_len); in nxp_s32_eth_tx()
Deth_esp32.c90 if (net_pkt_read(pkt, dev_data->txb, len)) { in eth_esp32_send()
Deth_renesas_ra.c280 if (net_pkt_read(pkt, tx_buf, len)) { in renesas_ra_eth_tx()
Deth_e1000.c126 if (net_pkt_read(pkt, dev->txb, len)) { in e1000_send()
Deth_ivshmem.c109 if (net_pkt_read(pkt, data, len)) { in eth_ivshmem_send()
/Zephyr-latest/tests/net/checksum_offload/src/
Dmain.c315 net_pkt_read(pkt, verify_buf, data_len); in test_fragment()
935 net_pkt_read(pkt, verify_buf, data_len); in test_fragment_rx_udp()
1196 net_pkt_read(pkt, verify_buf, data_len); in icmp_handler()
/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6.c762 ret = net_pkt_read(pkt, &duid, length); in dhcpv6_parse_option_clientid()
784 ret = net_pkt_read(pkt, &duid, length); in dhcpv6_parse_option_serverid()
845 ret = net_pkt_read(pkt, &iaaddr->addr, sizeof(iaaddr->addr)); in dhcpv6_parse_option_iaaddr()
1031 ret = net_pkt_read(pkt, &iaprefix->prefix, sizeof(iaprefix->prefix)); in dhcpv6_parse_option_iaprefix()
1826 if (net_pkt_read(pkt, tid, sizeof(tid)) < 0) { in dhcpv6_input()
/Zephyr-latest/subsys/net/ip/
Dnet_pkt.c1894 int net_pkt_read(struct net_pkt *pkt, void *data, size_t length) function
1906 ret = net_pkt_read(pkt, d16, sizeof(uint16_t));
1918 ret = net_pkt_read(pkt, d16, sizeof(uint16_t));
1930 ret = net_pkt_read(pkt, d32, sizeof(uint32_t));
2363 if (net_pkt_read(pkt, access->data, access->size)) {
/Zephyr-latest/tests/net/mld/src/
Dmain.c659 net_pkt_read(pkt, &record, sizeof(struct mld_report_mcast_record)); in expect_exclude_mcast_report()
847 net_pkt_read(pkt, &info->records[i], sizeof(struct mld_report_mcast_record)); in handle_mld_report()

123