Function pnet::packet::icmp::checksum

source ยท
pub fn checksum(packet: &IcmpPacket<'_>) -> u16
Expand description

Calculates a checksum of an ICMP packet.