Lines Matching refs:packet
435 let mut packet = UdpPacket::new_unchecked(&mut udp_bytes); in test_handle_udp_broadcast() localVariable
473 &mut packet, in test_handle_udp_broadcast()
489 packet.into_inner(), in test_handle_udp_broadcast()
601 let mut packet = UdpPacket::new_unchecked(&mut bytes[..]); in test_icmp_reply_size() localVariable
603 &mut packet, in test_icmp_reply_size()
626 let payload = packet.into_inner(); in test_icmp_reply_size()
721 let mut packet = ArpPacket::new_unchecked(frame.payload_mut()); in test_handle_valid_arp_request() localVariable
722 repr.emit(&mut packet); in test_handle_valid_arp_request()
845 let mut packet = ArpPacket::new_unchecked(frame.payload_mut()); in test_handle_other_arp_request() localVariable
846 repr.emit(&mut packet); in test_handle_other_arp_request()
897 let mut packet = ArpPacket::new_unchecked(frame.payload_mut()); in test_arp_flush_after_update_ip() localVariable
898 repr.emit(&mut packet); in test_arp_flush_after_update_ip()
962 let mut packet = Icmpv4Packet::new_unchecked(&mut bytes[..]); in test_icmpv4_socket() localVariable
968 echo_repr.emit(&mut packet, &ChecksumCapabilities::default()); in test_icmpv4_socket()
969 let icmp_data = &*packet.into_inner(); in test_icmpv4_socket()
1226 let mut packet = UdpPacket::new_unchecked(&mut bytes[..]); in test_raw_socket_no_reply() localVariable
1228 &mut packet, in test_raw_socket_no_reply()
1312 let mut packet = UdpPacket::new_unchecked(&mut bytes[..]); in test_raw_socket_with_udp_socket() localVariable
1314 &mut packet, in test_raw_socket_with_udp_socket()