Function pnet_packet::icmp::checksum [−][src]
pub fn checksum(packet: &IcmpPacket<'_>) -> u16be
Expand description
Calculates a checksum of an ICMP packet.
pub fn checksum(packet: &IcmpPacket<'_>) -> u16be
Calculates a checksum of an ICMP packet.