Lines Matching refs:checksum
6 use crate::wire::ip::checksum;
274 pub fn checksum(&self) -> u16 { in checksum() method
343 checksum::combine(&[ in verify_checksum()
344 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Tcp, data.len() as u32), in verify_checksum()
345 checksum::data(data), in verify_checksum()
560 let checksum = { in fill_checksum() localVariable
562 !checksum::combine(&[ in fill_checksum()
563 checksum::pseudo_header(src_addr, dst_addr, IpProtocol::Tcp, data.len() as u32), in fill_checksum()
564 checksum::data(data), in fill_checksum()
567 self.set_checksum(checksum) in fill_checksum()
1122 assert_eq!(packet.checksum(), 0x01b6); in test_deconstruct()