/// Create a new raw ARP packet header.
Create a new raw ARP packet header.
Create a new raw ARP packet header .
fn new(arp: &ArpPacket) -> RawArpPacketHeader {
        RawArpPacketHeader {
            htype: arp.htype.to_be(),
            ptype: arp.ptype.to_be(),
            hlen:  arp.hlen,
            plen:  arp.plen,
            oper:  (arp.oper as u16).to_be()
        }
    }
fn new ( arp : & ArpPacket ) -> RawArpPacketHeader { RawArpPacketHeader { htype : arp . htype . to_be ( ) , ptype : arp . ptype . to_be ( ) , hlen : arp . hlen , plen : arp . plen , oper : ( arp . oper as u16 ) . to_be ( ) } }
Create a new raw ARP packet header.
Create a new raw ARP packet header .
arp
&ArpPacket