/// Create a new ethernet packet.
Create a new ethernet packet.
Create a new ethernet packet .
pub fn new(header: EtherPacketHeader, body: B) -> EtherPacket<B> {
        EtherPacket {
            header: header,
            body:   body
        }
    }
pub fn new ( header : EtherPacketHeader , body : B ) -> EtherPacket < B > { EtherPacket { header : header , body : body } }
Create a new ethernet packet.
Create a new ethernet packet .
header
EtherPacketHeader
body
B