3 ms·
I have a small, safe, zero-copy partial IP/TCP/UDP parser implementation in Rust. My favorite part is the IP checksum calculation, because I can use Rust's iter
by conradev 11y ago
I have a small, safe, zero-copy partial IP/TCP/UDP parser implementation in Rust. My favorite part is the IP checksum calculation, because I can use Rust's iterators:
https://github.com/iCepa/tun2tor/blob/6cc56a2f6c0b578aed9277d7d1638c33fb113179/src/packet.rs#L67-L96 https://github.com/iCepa/tun2tor/blob/6cc56a2f6c0b578aed9277...
Unfortunately, I haven't had time to work on it in a little while :(