/// Construct a builder with the same contents as this packet.
Construct a builder with the same contents as this packet.
Construct a builder with the same contents as this packet .
pub fn builder(&self) -> Ipv4PacketBuilder {
        let mut s = Ipv4PacketBuilder {
            dscp: self.dscp(),
            ecn: self.ecn(),
            id: self.id(),
            flags: 0,
            frag_off: self.fragment_offset(),
            ttl: self.ttl(),
            proto: self.hdr_prefix.proto.into(),
            src_ip: self.src_ip(),
            dst_ip: self.dst_ip(),
        };
        s.df_flag(self.df_flag());
        s.mf_flag(self.mf_flag());
        s
    }
pub fn builder ( & self ) -> Ipv4PacketBuilder { let mut s = Ipv4PacketBuilder { dscp : self . dscp ( ) , ecn : self . ecn ( ) , id : self . id ( ) , flags : 0 , frag_off : self . fragment_offset ( ) , ttl : self . ttl ( ) , proto : self . hdr_prefix . proto . into ( ) , src_ip : self . src_ip ( ) , dst_ip : self . dst_ip ( ) , } ; s . df_flag ( self . df_flag ( ) ) ; s . mf_flag ( self . mf_flag ( ) ) ; s }
Construct a builder with the same contents as this packet.
Construct a builder with the same contents as this packet .
&self