Lines Matching refs:c
28 let mut c = ChunkUdp::new(src, dst); in test_chunk_udp() localVariable
29 let s = c.to_string(); in test_chunk_udp()
31 assert_eq!(c.network(), UDP_STR, "should match"); in test_chunk_udp()
34 assert_eq!(c.get_source_ip(), src.ip(), "ip should match"); in test_chunk_udp()
35 assert_eq!(c.get_destination_ip(), dst.ip(), "ip should match"); in test_chunk_udp()
38 let ts = c.set_timestamp(); in test_chunk_udp()
39 assert_eq!(ts, c.get_timestamp(), "timestamp should match"); in test_chunk_udp()
41 c.user_data = "Hello".as_bytes().to_vec(); in test_chunk_udp()
43 let cloned = c.clone_to(); in test_chunk_udp()
46 c.set_source_addr("2.3.4.5:4000")?; in test_chunk_udp()
47 assert_eq!(c.source_addr().to_string(), "2.3.4.5:4000"); in test_chunk_udp()
50 assert!(!c.tag().is_empty(), "should not be empty"); in test_chunk_udp()
53 c.user_data[0] = b'!'; // oroginal: "Hello" -> "Hell!" in test_chunk_udp()