Crate packet_crafter

Source

Modules§

Structs§

  • represents a network packet. can be used to build or parse packets.

Enums§

Traits§

  • Converts a number to an array of its byte representation

Functions§

  • Calculates a checksum. Used by ipv4 and icmp. The two bytes starting at skipword * 2 will be ignored. Supposed to be the checksum field, which is regarded as zero during calculation.
  • Return the sum of the data as 16-bit words (assumes big endian)