Searched refs:PACKET_BYTES (Results 1 – 5 of 5) sorted by relevance
449 pub const PACKET_BYTES: [u8; 24] = [ constant487 pub const PACKET_BYTES: [u8; 44] = [ constant593 ipv4_locals::PACKET_BYTES,602 ipv6_locals::PACKET_BYTES,614 let mut wrong_version = ipv4_locals::PACKET_BYTES; in test_send_illegal()623 let mut wrong_protocol = ipv4_locals::PACKET_BYTES; in test_send_illegal()637 let mut wrong_version = ipv6_locals::PACKET_BYTES; in test_send_illegal()646 let mut wrong_protocol = ipv6_locals::PACKET_BYTES; in test_send_illegal()665 let mut cksumd_packet = ipv4_locals::PACKET_BYTES; in test_recv_process()707 assert_eq!(socket.recv(), Ok(&ipv6_locals::PACKET_BYTES[..])); in test_recv_process()[all …]
341 static PACKET_BYTES: [u8; 12] = [ constant356 let packet = Packet::new_unchecked(&PACKET_BYTES[..]); in test_deconstruct()376 assert_eq!(&*packet.into_inner(), &PACKET_BYTES[..]); in test_construct()422 let packet = Packet::new_unchecked(&PACKET_BYTES[..]); in test_parse()447 assert_eq!(&*packet.into_inner(), &PACKET_BYTES[..]); in test_emit()
389 static PACKET_BYTES: [u8; 28] = [ variable396 let packet = Packet::new_unchecked(&PACKET_BYTES[..]); in test_deconstruct()427 assert_eq!(&*packet.into_inner(), &PACKET_BYTES[..]); in test_construct()446 let packet = Packet::new_unchecked(&PACKET_BYTES[..]); in test_parse()456 assert_eq!(&*packet.into_inner(), &PACKET_BYTES[..]); in test_emit()
801 static PACKET_BYTES: [u8; 30] = [ constant810 let packet = Packet::new_unchecked(&PACKET_BYTES[..]); in test_deconstruct()849 assert_eq!(&*packet.into_inner(), &PACKET_BYTES[..]); in test_construct()855 bytes.extend(&PACKET_BYTES[..]); in test_overlong()871 bytes.extend(&PACKET_BYTES[..]); in test_total_len_overflow()
1094 static PACKET_BYTES: [u8; 28] = [ constant1108 let packet = Packet::new_unchecked(&PACKET_BYTES[..]); in test_deconstruct()1131 let mut bytes = vec![0xa5; PACKET_BYTES.len()]; in test_construct()1151 assert_eq!(&*packet.into_inner(), &PACKET_BYTES[..]); in test_construct()1157 let packet = Packet::new_unchecked(&PACKET_BYTES[..23]); in test_truncated()