Docs.rs
packet_crafter-0.2.0
packet_crafter 0.2.0
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
coldFireworks
Dependencies
add_getters_setters ~1
normal
Versions
74.27%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
packet_
crafter
0.2.0
All Items
Crate Items
Modules
Structs
Enums
Traits
Functions
Crate
packet_crafter
Copy item path
Source
Modules
§
ethertype_
numbers
headers
protocol_
numbers
Structs
§
Packet
represents a network packet. can be used to build or parse packets.
Enums
§
Parse
Error
Protocol
Traits
§
AsBe
Bytes
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)