Lines Matching refs:raw_pkt
17 let raw_pkt = Bytes::from_static(&[ in test_basic() localVariable
41 let buf = &mut raw_pkt.clone(); in test_basic()
54 raw_pkt.len(), in test_basic()
60 assert_eq!(n, raw_pkt.len(), "wrong marshal size"); in test_basic()
64 raw_pkt.len(), in test_basic()
67 raw_pkt.len() in test_basic()
70 raw, raw_pkt, in test_basic()
128 let raw_pkt = Bytes::from_static(&[ in test_padding() localVariable
133 let buf = &mut raw_pkt.clone(); in test_padding()
135 assert_eq!(&packet.payload[..], &raw_pkt[12..12 + 25]); in test_padding()
138 assert_eq!(raw, raw_pkt); in test_padding()
175 let raw_pkt = Bytes::from_static(&[ in test_rfc_8285_one_byte_extension() localVariable
179 let buf = &mut raw_pkt.clone(); in test_rfc_8285_one_byte_extension()
199 payload: raw_pkt.slice(20..), in test_rfc_8285_one_byte_extension()
203 assert_eq!(dst, raw_pkt); in test_rfc_8285_one_byte_extension()
217 let raw_pkt = Bytes::from_static(&[ in test_rfc_8285_one_byte_two_extension_of_two_bytes() localVariable
222 let buf = &mut raw_pkt.clone(); in test_rfc_8285_one_byte_two_extension_of_two_bytes()
265 payload: raw_pkt.slice(20..), in test_rfc_8285_one_byte_two_extension_of_two_bytes()
269 assert_eq!(dst, raw_pkt); in test_rfc_8285_one_byte_two_extension_of_two_bytes()
288 let mut raw_pkt = Bytes::from_static(&[ in test_rfc_8285_one_byte_multiple_extensions_with_padding() localVariable
294 let buf = &mut raw_pkt; in test_rfc_8285_one_byte_multiple_extensions_with_padding()
366 let raw_pkt = &[ in test_rfc_8285_one_byte_multiple_extension() localVariable
399 payload: raw_pkt[28..].into(), in test_rfc_8285_one_byte_multiple_extension()
405 raw_pkt, in test_rfc_8285_one_byte_multiple_extension()
413 let raw_pkt = Bytes::from_static(&[ in test_rfc_8285_two_byte_extension() localVariable
420 let _ = Packet::unmarshal(&mut raw_pkt.clone())?; in test_rfc_8285_two_byte_extension()
441 payload: raw_pkt.slice(44..), in test_rfc_8285_two_byte_extension()
446 dst_data, raw_pkt, in test_rfc_8285_two_byte_extension()
465 let mut raw_pkt = Bytes::from_static(&[ in test_rfc8285_two_byte_multiple_extension_with_padding() localVariable
471 let p = Packet::unmarshal(&mut raw_pkt)?; in test_rfc8285_two_byte_multiple_extension_with_padding()
516 let raw_pkt = Bytes::from_static(&[ in test_rfc8285_two_byte_multiple_extension_with_large_extension() localVariable
552 payload: raw_pkt.slice(40..), in test_rfc8285_two_byte_multiple_extension_with_large_extension()
558 raw_pkt[..], in test_rfc8285_two_byte_multiple_extension_with_large_extension()
1214 let raw_pkt = Bytes::from_static(&[ in test_round_trip() localVariable
1219 let payload = raw_pkt.slice(12..); in test_round_trip()
1221 let p = Packet::unmarshal(&mut raw_pkt.clone())?; in test_round_trip()
1232 raw_pkt, buf, in test_round_trip()