pub fn create(
        saddr: Ipv4Addr,
        daddr: Ipv4Addr,
        ttl:   u8,
        body:  B) -> Ipv4Packet<B> {
        let pt     = body.packet_type();
        let header = Ipv4PacketHeader::new(saddr, daddr, pt.code(), ttl);
        Ipv4Packet::new(header, body)
    }
/// Create a new IPv4 packet.
Create a new IPv4 packet.
Create a new IPv4 packet .
pub fn create(
        saddr: Ipv4Addr,
        daddr: Ipv4Addr,
        ttl:   u8,
        body:  B) -> Ipv4Packet<B> {
        let pt     = body.packet_type();
        let header = Ipv4PacketHeader::new(saddr, daddr, pt.code(), ttl);
        Ipv4Packet::new(header, body)
    }
pub fn create ( saddr : Ipv4Addr , daddr : Ipv4Addr , ttl : u8 , body : B ) -> Ipv4Packet < B > { let pt = body . packet_type ( ) ; let header = Ipv4PacketHeader :: new ( saddr , daddr , pt . code ( ) , ttl ) ; Ipv4Packet :: new ( header , body ) }
Create a new IPv4 packet.
Create a new IPv4 packet .
saddr
Ipv4Addr
daddr
Ipv4Addr
ttl
u8
body
B
saddr
Ipv4Addr
daddr
Ipv4Addr
ttl
u8
body
B