Function pnet::packet::ipv4::checksum [] [src]

pub fn checksum(packet: &Ipv4Packet) -> u16be

Calculates the checksum of an IPv4 packet