Skip to content

Unify network bring-up into the micronet daemon - #2

Merged
keskad merged 3 commits into
mainfrom
feat/micronet-daemon
Aug 21, 2026
Merged

Unify network bring-up into the micronet daemon#2
keskad merged 3 commits into
mainfrom
feat/micronet-daemon

Conversation

@keskad

@keskad keskad commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace configure-ethernet and configure-dhcp with one micronet daemon (JSON config, Unix socket IPC, inotify hot-reload).
  • Choose client / gateway / static .252 via DHCPDISCOVER and ping of gateway.ip; dnsmasq only in gateway mode (pool .50–.200, sticky 7d).
  • Move operator WiFi docs to docs/networking/; add ARCHITECTURE.md and CODING-GUIDELINES.md; update plans for TL-SF1006P vs MikroTik hEX PoE lite backhauls.
  • CI/Makefile ship a single micronet-linux-arm64 artifact (with temporary configure-* aliases in dist/).

Test plan

  • make test / make clippy locally
  • CI green on this branch
  • Hub integration verified with companion PR in bigfred-os (same release cycle)

Companion: dcc-bigfred/bigfred-os#34

Replace configure-ethernet and configure-dhcp with one JSON-configured
daemon that probes foreign DHCP, pings gateway.ip, and applies client,
gateway, or static .252 modes with dnsmasq only when needed.

Co-authored-by: Cursor <cursoragent@cursor.com>
keskad and others added 2 commits August 21, 2026 18:35
- Drop port=0 from dnsmasq.conf so the DNS listener stays on; we hand out
  option:dns-server = gateway.ip and ARCHITECTURE describes DHCP+DNS.
- Poll the interface every ~3s in client mode and update the status
  snapshot when dhclient finally acquires a lease, so micronet check
  liveness sees a non-empty cidr instead of looping restarts.

Co-authored-by: Cursor <cursoragent@cursor.com>
Fail closed on probe errors and validate DHCPOFFER xid/chaddr/opcode.
Own dnsmasq and dhclient via pidfiles, start dhclient -nw, and periodically
re-probe in gateway mode so a later foreign DHCP server makes us yield.
Live liveness, real CIDR, teardown CLI, and legacy configure-* check fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
@keskad
keskad merged commit bf1816e into main Aug 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant