std1.0.0-beta-7 SafeC docs

std :: net::ethernet

Function std::eth_build

#include <std/net/ethernet.h> source ยท definition

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.