pub fn new_more_fragment(
        identification: u16,
        t: LayerType,
        fragment_offset: u16,
        src: Ipv4Addr,
        dst: Ipv4Addr,
    ) -> Option<Ipv4> {
        let ipv4 = Ipv4::new(identification, t, src, dst);
        if let Some(mut ipv4) = ipv4 {
            ipv4.layer.flags = Ipv4Flags::MoreFragments;
            ipv4.layer.fragment_offset = fragment_offset;
            return Some(ipv4);
        };

        None
    }
/// Creates an `Ipv4` represents an IPv4 fragment.
Creates an `Ipv4` represents an IPv4 fragment.
Creates an ` Ipv4 ` represents an IPv4 fragment .
pub fn new_more_fragment(
        identification: u16,
        t: LayerType,
        fragment_offset: u16,
        src: Ipv4Addr,
        dst: Ipv4Addr,
    ) -> Option<Ipv4> {
        let ipv4 = Ipv4::new(identification, t, src, dst);
        if let Some(mut ipv4) = ipv4 {
            ipv4.layer.flags = Ipv4Flags::MoreFragments;
            ipv4.layer.fragment_offset = fragment_offset;
            return Some(ipv4);
        };
        None
    }
pub fn new_more_fragment ( identification : u16 , t : LayerType , fragment_offset : u16 , src : Ipv4Addr , dst : Ipv4Addr , ) -> Option < Ipv4 > { let ipv4 = Ipv4 :: new ( identification , t , src , dst ) ; if let Some ( mut ipv4 ) = ipv4 { ipv4 . layer . flags = Ipv4Flags :: MoreFragments ; ipv4 . layer . fragment_offset = fragment_offset ; return Some ( ipv4 ) ; } ; None }
Creates an `Ipv4` represents an IPv4 fragment.
Creates an ` Ipv4 ` represents an IPv4 fragment .
identification
u16
t
LayerType
fragment_offset
u16
src
Ipv4Addr
dst
Ipv4Addr