pub fn new(src: MacAddr, dst: MacAddr, etype: u16) -> EtherPacketHeader {
        EtherPacketHeader {
            src:   src,
            dst:   dst,
            etype: etype
        }
    }
/// Create a new ethernet packet header.
Create a new ethernet packet header.
Create a new ethernet packet header .
pub fn new(src: MacAddr, dst: MacAddr, etype: u16) -> EtherPacketHeader {
        EtherPacketHeader {
            src:   src,
            dst:   dst,
            etype: etype
        }
    }
pub fn new ( src : MacAddr , dst : MacAddr , etype : u16 ) -> EtherPacketHeader { EtherPacketHeader { src : src , dst : dst , etype : etype } }
Create a new ethernet packet header.
Create a new ethernet packet header .
src
MacAddr
dst
MacAddr
etype
u16
src
MacAddr
dst
MacAddr
etype
u16