Searched refs:recv_pkt (Results 1 – 8 of 8) sorted by relevance
/Zephyr-Core-3.5.0/tests/net/ipv4_fragment/src/ |
D | main.c | 242 struct net_pkt *recv_pkt; in sender_iface() local 306 recv_pkt = net_pkt_rx_clone(pkt, K_NO_WAIT); in sender_iface() 307 net_pkt_set_overwrite(recv_pkt, true); in sender_iface() 310 net_pkt_cursor_init(recv_pkt); in sender_iface() 311 net_pkt_skip(recv_pkt, 12); in sender_iface() 312 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() 316 net_pkt_cursor_init(recv_pkt); in sender_iface() 317 net_pkt_skip(recv_pkt, 12); in sender_iface() 318 net_pkt_write(recv_pkt, buf_ip_dst, sizeof(buf_ip_dst)); in sender_iface() [all …]
|
/Zephyr-Core-3.5.0/tests/net/socket/af_packet_ipproto_raw/src/ |
D | main.c | 31 struct net_pkt *recv_pkt; in fake_dev_send() local 41 recv_pkt = net_pkt_clone(pkt, K_NO_WAIT); in fake_dev_send() 45 ret = net_recv_data(net_pkt_iface(recv_pkt), recv_pkt); in fake_dev_send()
|
/Zephyr-Core-3.5.0/tests/net/ipv6_fragment/src/ |
D | main.c | 960 struct net_pkt *recv_pkt; in test_pkt_loopback() local 970 recv_pkt = net_pkt_rx_clone(pkt, K_NO_WAIT); in test_pkt_loopback() 971 net_pkt_set_overwrite(recv_pkt, true); in test_pkt_loopback() 974 net_pkt_cursor_init(recv_pkt); in test_pkt_loopback() 975 net_pkt_skip(recv_pkt, 8); in test_pkt_loopback() 976 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() 980 net_pkt_cursor_init(recv_pkt); in test_pkt_loopback() 981 net_pkt_skip(recv_pkt, 8); in test_pkt_loopback() 982 net_pkt_write(recv_pkt, buf_ip_dst, sizeof(buf_ip_dst)); in test_pkt_loopback() [all …]
|
/Zephyr-Core-3.5.0/drivers/modem/ |
D | wncm14a2a.c | 122 struct net_pkt *recv_pkt; member 739 pkt = sock->recv_pkt; in sockreadrecv_cb_work() 740 sock->recv_pkt = NULL; in sockreadrecv_cb_work() 807 sock->recv_pkt = net_pkt_rx_alloc_with_buffer( in on_cmd_sockread() 811 if (!sock->recv_pkt) { in on_cmd_sockread() 817 net_pkt_set_context(sock->recv_pkt, sock->context); in on_cmd_sockread() 820 hdr_len = pkt_setup_ip_data(sock->recv_pkt, sock); in on_cmd_sockread() 835 if (net_pkt_write_u8(sock->recv_pkt, c)) { in on_cmd_sockread() 837 net_pkt_unref(sock->recv_pkt); in on_cmd_sockread() 838 sock->recv_pkt = NULL; in on_cmd_sockread() [all …]
|
D | hl7800.c | 399 struct net_pkt *recv_pkt; member 3212 sock->recv_cb(sock->context, sock->recv_pkt, in notify_all_tcp_sockets_closed() 3790 if (sock->recv_pkt != NULL) { in sock_notif_cb_work() 3965 (sock->recv_pkt != NULL) ? net_pkt_get_len(sock->recv_pkt) : 0); in sockreadrecv_cb_work() 3967 pkt = sock->recv_pkt; in sockreadrecv_cb_work() 3968 sock->recv_pkt = NULL; in sockreadrecv_cb_work() 4015 sock->recv_pkt = net_pkt_rx_alloc_with_buffer( in sock_read() 4018 if (!sock->recv_pkt) { in sock_read() 4024 net_pkt_set_context(sock->recv_pkt, sock->context); in sock_read() 4027 hdr_len = pkt_setup_ip_data(sock->recv_pkt, sock); in sock_read() [all …]
|
/Zephyr-Core-3.5.0/tests/net/socket/af_packet/src/ |
D | main.c | 45 struct net_pkt *recv_pkt; in eth_fake_send() local 55 recv_pkt = net_pkt_rx_clone(pkt, K_NO_WAIT); in eth_fake_send() 63 net_pkt_set_iface(recv_pkt, target_iface); in eth_fake_send() 67 ret = net_recv_data(net_pkt_iface(recv_pkt), recv_pkt); in eth_fake_send()
|
/Zephyr-Core-3.5.0/tests/net/socket/misc/src/ |
D | main.c | 93 struct net_pkt *recv_pkt; in dummy_send() local 107 recv_pkt = net_pkt_clone(pkt, K_NO_WAIT); in dummy_send() 108 if (recv_pkt == NULL) { in dummy_send() 112 ret = net_recv_data(net_pkt_iface(recv_pkt), recv_pkt); in dummy_send()
|
/Zephyr-Core-3.5.0/subsys/net/ip/ |
D | tcp.c | 2303 struct net_pkt *recv_pkt; in tcp_in() local 3002 (recv_pkt = k_fifo_get(recv_data_fifo, K_NO_WAIT)) != NULL) { in tcp_in() 3003 if (net_context_packet_received(conn_handler, recv_pkt, NULL, in tcp_in() 3007 tcp_pkt_unref(recv_pkt); in tcp_in()
|