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§
Constants§
Statics§
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.