Crate packet_crafter

Source

Modules§

ethertype_numbers
headers
protocol_numbers

Structs§

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

Enums§

ParseError
Protocol

Traits§

AsBeBytes
Converts a number to an array of its byte representation

Functions§

checksum
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.
sum_be_words
Return the sum of the data as 16-bit words (assumes big endian)