std :: net::ethernet
Function std::eth_build
void eth_build(
&PacketBuf pkt,
const unsigned char dst[NET_MAC_LEN],
const unsigned char src[NET_MAC_LEN],
unsigned short ethertype,
)Write Ethernet header into packet at offset 0; sets pkt.len to ETH_HDR_LEN.