pub fn defrag(ipv4: &Ipv4) -> Ipv4 {
        Ipv4 {
            layer: ipv4::Ipv4 {
                version: ipv4.layer.version,
                header_length: ipv4.layer.header_length,
                dscp: ipv4.layer.dscp,
                ecn: ipv4.layer.ecn,
                total_length: ipv4.layer.total_length,
                identification: ipv4.get_identification(),
                flags: 0,
                fragment_offset: 0,
                ttl: ipv4.layer.ttl,
                next_level_protocol: ipv4.layer.next_level_protocol,
                checksum: 0,
                source: ipv4.get_src(),
                destination: ipv4.get_dst(),
                options: ipv4.layer.options.clone(),
                payload: vec![],
            },
        }
    }
/// Creates an `Ipv4` without fragmentation according to an `Ipv4`.
Creates an `Ipv4` without fragmentation according to an `Ipv4`.
Creates an ` Ipv4 ` without fragmentation according to an ` Ipv4 ` .
pub fn defrag(ipv4: &Ipv4) -> Ipv4 {
        Ipv4 {
            layer: ipv4::Ipv4 {
                version: ipv4.layer.version,
                header_length: ipv4.layer.header_length,
                dscp: ipv4.layer.dscp,
                ecn: ipv4.layer.ecn,
                total_length: ipv4.layer.total_length,
                identification: ipv4.get_identification(),
                flags: 0,
                fragment_offset: 0,
                ttl: ipv4.layer.ttl,
                next_level_protocol: ipv4.layer.next_level_protocol,
                checksum: 0,
                source: ipv4.get_src(),
                destination: ipv4.get_dst(),
                options: ipv4.layer.options.clone(),
                payload: vec![],
            },
        }
    }
pub fn defrag ( ipv4 : & Ipv4 ) -> Ipv4 { Ipv4 { layer : ipv4 :: Ipv4 { version : ipv4 . layer . version , header_length : ipv4 . layer . header_length , dscp : ipv4 . layer . dscp , ecn : ipv4 . layer . ecn , total_length : ipv4 . layer . total_length , identification : ipv4 . get_identification ( ) , flags : 0 , fragment_offset : 0 , ttl : ipv4 . layer . ttl , next_level_protocol : ipv4 . layer . next_level_protocol , checksum : 0 , source : ipv4 . get_src ( ) , destination : ipv4 . get_dst ( ) , options : ipv4 . layer . options . clone ( ) , payload : vec ! [ ] , } , } }
Creates an `Ipv4` without fragmentation according to an `Ipv4`.
Creates an ` Ipv4 ` without fragmentation according to an ` Ipv4 ` .
ipv4
&Ipv4