JulianSchmid / etherparse

A rust library for parsing ethernet & ethernet using protocols.
Apache License 2.0
286 stars 54 forks source link

[Feature request] Checksum validation #12

Open smmalis37 opened 4 years ago

smmalis37 commented 4 years ago

In the case of reading packets from outside sources (SlicedPacket, etc) it would be useful to have an easy way to validate that the checksums on various headers are correct. A fn is_valid_checksum(&self) -> bool or similar.