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

Wrong value from TCP Flags #25

Closed pythops closed 1 month ago

pythops commented 1 month ago

I noticed that some TCP flags return wrong values. For example the flag SYN should be return 0 or 1 but instead it returns 256 when it set. By the way, why return u16 where u8 is more than enough

pythops commented 1 month ago

my bad, I am using u16::from_be and that reads the wrong value