Expand description
Network syscall handlers.
Implements the userspace networking interface: send, recv, and info.
Constantsยง
- NET_
INLINE_ ๐BUF_ CAPACITY - Most Ethernet frames, including ICMP echo, fit comfortably under 2 KiB. Keep those on the stack to avoid hot-path heap churn in net send/recv syscalls.
Staticsยง
- DHCP_
TRACE_ ๐LOG_ BUDGET - Budget for logging DHCP trace frames to prevent log spam.
- NET_
RECV_ ๐ERR_ LOG_ BUDGET - Budget for logging network receive errors to prevent log spam.
- NET_
SEND_ ๐ERR_ LOG_ BUDGET - Budget for logging network send errors to prevent log spam.
Functionsยง
- sys_
net_ info - SYS_NET_INFO : Query network interface information.
- sys_
net_ recv - SYS_NET_RECV : Receive a raw Ethernet frame.
- sys_
net_ send - SYS_NET_SEND : Transmit a raw Ethernet frame.
- trace_
dhcp_ ๐frame - Parse and log a raw Ethernet frame if it looks like DHCP.