Skip to main content

Crate dhcp_client

Crate dhcp_client 

Source
Expand description

dhcp-client – DHCP status monitor for strat9-os

This is not a full DHCP client. The actual DHCP exchange is performed by the strate-net silo (via smoltcp’s DHCPv4 socket). dhcp-client simply polls the /net/ip, /net/gateway, /net/route and /net/dns scheme files until a valid address is obtained, then prints the result to the console.

All I/O is done through Plan 9–style schemes – no BSD sockets.

Structs§

BufWriter 🔒
BumpAllocator
__FreeNode 🔒

Constants§

BACKGROUND_POLL_INTERVAL_MS 🔒
BOOT_RETRIES 🔒
POLL_INTERVAL_MS 🔒
__MIN_ALIGN 🔒
__MIN_BLOCK_SIZE 🔒

Statics§

GLOBAL_ALLOCATOR 🔒
__ALLOC_LOCK 🔒
__FREE_LIST_HEAD 🔒
__HEAP 🔒
__HEAP_OFFSET 🔒

Functions§

__align_up 🔒
Implements align up.
__alloc_size 🔒
Implements alloc size.
__lock_alloc 🔒
Implements lock alloc.
__unlock_alloc 🔒
Implements unlock alloc.
_start
Implements start.
alloc_error 🔒
Implements alloc error.
cidr_to_netmask 🔒
Implements cidr to netmask.
is_unconfigured 🔒
Returns whether unconfigured.
log 🔒
Implements log.
panic 🔒
Implements panic.
scheme_read 🔒
Read a scheme file and return how many bytes were read into buf.
sleep_ms 🔒
Implements sleep ms.