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

fix: Drop usage of `u128` in `Ipv6Hdr` #18

Closed vadorovsky closed 4 months ago

vadorovsky commented 4 months ago

core::Ipv6Addr uses [u8; 16] internally, so there is no need to use u128 - it only adds an unnecessary conversion. Also, u128 is not properly supported in eBPF.