std1.0.0-beta-7 SafeC docs

Module net::arp

#include <std/net/arp.h> source

ARP (Address Resolution Protocol) Freestanding-safe; uses a fixed-size table.

Structs

ArpEntry
ArpTable

Functions

arp_build_packetBuild an ARP request/reply packet into pkt (starting after Ethernet header). pkt.len must already include the Ethernet header length (ETH_HDR_LEN).
arp_parse_packetParse an ARP packet starting at pkt.data + offset. Fills op, sha, spa, tha, tpa on success (returns 0), -1 on bad length.

Macros

ARP_TABLE_SIZEmax cached entries
ARP_OP_REQUEST
ARP_OP_REPLY