vadorovsky / network-types

Rust structs representing network-related types (on Layer 2, 3 and 4)
https://crates.io/crates/network-types
MIT License
43 stars 13 forks source link

Add a method to ipv4 to recalculate the checksum #9

Open pythops opened 1 year ago

pythops commented 1 year ago

Hi,

It would be great to have some helper function to recalculate the ipv4 checksum, in case some fields got updated.

Thanks