mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Listen for DHCP DISCOVER/REQUEST broadcasts on UDP 67 to catch devices as early as possible — a device must request an address before doing almost anything else, often before it has an IP. Follows the mDNS/SSDP scanner pattern (finder/scanner/status modules) and feeds the shared devices/events/notifications pipeline. The client MAC is taken directly from the packet's chaddr, so no ARP probe is needed; a DISCOVER with no assigned IP reuses any previously recorded address rather than clobbering it. Exposes GET /api/dhcp_scanner/status, wired into the OpenAPI generation, and adds a Dhcp variant to DeviceEventScanner. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>