std :: net::ethernet
Function std::eth_parse
int eth_parse(&PacketBuf pkt, &EthernetHdr hdr_out)Parse Ethernet header from packet (returns 0 on success, -1 if too short).
std :: net::ethernet
int eth_parse(&PacketBuf pkt, &EthernetHdr hdr_out)Parse Ethernet header from packet (returns 0 on success, -1 if too short).