Home
last modified time | relevance | path

Searched refs:PACKET_BYTES (Results 1 – 5 of 5) sorted by relevance

/smoltcp-0.9.1/src/socket/
Draw.rs449 pub const PACKET_BYTES: [u8; 24] = [ constant
487 pub const PACKET_BYTES: [u8; 44] = [ constant
593 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 …]
/smoltcp-0.9.1/src/wire/
Dudp.rs341 static PACKET_BYTES: [u8; 12] = [ constant
356 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()
Darp.rs389 static PACKET_BYTES: [u8; 28] = [ variable
396 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()
Dipv4.rs801 static PACKET_BYTES: [u8; 30] = [ constant
810 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()
Dtcp.rs1094 static PACKET_BYTES: [u8; 28] = [ constant
1108 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()