pub fn create(
        src: MacAddr,
        dst: MacAddr,
        body: B) -> EtherPacket<B> {
        let pt     = body.packet_type();
        let header = EtherPacketHeader::new(src, dst, pt.code());
        EtherPacket::new(header, body)
    }
/// Create a new ethernet packet.
Create a new ethernet packet.
Create a new ethernet packet .
pub fn create(
        src: MacAddr,
        dst: MacAddr,
        body: B) -> EtherPacket<B> {
        let pt     = body.packet_type();
        let header = EtherPacketHeader::new(src, dst, pt.code());
        EtherPacket::new(header, body)
    }
pub fn create ( src : MacAddr , dst : MacAddr , body : B ) -> EtherPacket < B > { let pt = body . packet_type ( ) ; let header = EtherPacketHeader :: new ( src , dst , pt . code ( ) ) ; EtherPacket :: new ( header , body ) }
Create a new ethernet packet.
Create a new ethernet packet .
src
MacAddr
dst
MacAddr
body
B
src
MacAddr
dst
MacAddr
body
B