etherparse 0.20.1

A library for parsing & writing a bunch of packet based protocols (EthernetII, IPv4, IPv6, UDP, TCP ...).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// IPv4 & IPv6 specific fragment identifying information.
#[derive(Debug, Clone, Hash, Eq, PartialEq)]
pub enum IpFragVersionSpecId {
    /// IPv4 specific data.
    Ipv4 {
        source: [u8; 4],
        destination: [u8; 4],
        identification: u16,
    },
    /// IPv6 specific data.
    Ipv6 {
        source: [u8; 16],
        destination: [u8; 16],
        identification: u32,
    },
}