use tygress::header::Ipv4; fn main() { let bytes = [ 0x45, 0x00, 0x00, 0x73, 0x00, 0x00, 0x40, 0x00, 0x40, 0x11, 0xb8, 0x61, 0xc0, 0xa8, 0x00, 0x01, 0xc0, 0xa8, 0x00, 0xc7, ]; let (header, _, _) = Ipv4::split_header(&bytes).unwrap(); println!("{}", header); }