Lines Matching refs:recv_pkt
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()
319 net_pkt_write(recv_pkt, buf_ip_src, sizeof(buf_ip_src)); in sender_iface()
322 net_pkt_cursor_init(recv_pkt); in sender_iface()
323 net_pkt_skip(recv_pkt, 6); in sender_iface()
324 net_pkt_read_be16(recv_pkt, &offset); in sender_iface()
329 net_pkt_cursor_init(recv_pkt); in sender_iface()
330 net_pkt_skip(recv_pkt, NET_IPV4H_LEN); in sender_iface()
331 net_pkt_read_be16(recv_pkt, &buf_port_src); in sender_iface()
332 net_pkt_read_be16(recv_pkt, &buf_port_dst); in sender_iface()
334 net_pkt_cursor_init(recv_pkt); in sender_iface()
335 net_pkt_skip(recv_pkt, NET_IPV4H_LEN); in sender_iface()
336 net_pkt_write_be16(recv_pkt, buf_port_dst); in sender_iface()
337 net_pkt_write_be16(recv_pkt, buf_port_src); in sender_iface()
341 net_pkt_cursor_init(recv_pkt); in sender_iface()
342 net_pkt_set_overwrite(recv_pkt, false); in sender_iface()
343 net_pkt_set_iface(recv_pkt, iface1); in sender_iface()
344 ret = net_recv_data(net_pkt_iface(recv_pkt), recv_pkt); in sender_iface()