head 1.5; access; symbols pkgsrc-2026Q1:1.3.0.4 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.2 pkgsrc-2025Q4-base:1.3; locks; strict; comment @# @; 1.5 date 2026.05.24.22.00.34; author roy; state Exp; branches; next 1.4; commitid 8sDaqcGbW6kcf7HG; 1.4 date 2026.04.21.17.07.42; author roy; state Exp; branches; next 1.3; commitid QzVye9sGocqhGQCG; 1.3 date 2025.12.16.22.28.31; author roy; state Exp; branches; next 1.2; commitid cOO2X01YaQUwvGmG; 1.2 date 2025.12.14.11.00.00; author roy; state Exp; branches; next 1.1; commitid TAKkoSB7BMPaLmmG; 1.1 date 2025.10.23.16.36.17; author roy; state Exp; branches; next ; commitid G4fqf5WB1x7eiIfG; desc @@ 1.5 log @Update to dhcpsd-0.0.8: * leasefile fixes * Compile on NetBSD-9 * less log spam * LUA: work with DHCP messages less than BOOTP in length @ text @$NetBSD: distinfo,v 1.4 2026/04/21 17:07:42 roy Exp $ BLAKE2s (dhcpsd-0.0.8.tar.xz) = 121ded8c991999346d414027912f6c0d103a566f11a165af6f7855f8f6806ab0 SHA512 (dhcpsd-0.0.8.tar.xz) = 35625f0f3c7e466ab05e9a83e1e16b87fd21441a4dd58e5e4f22a1813583404a433a25adae0f7bc670bd187ee6470e92050190da141bbfb51c04080c39a95ae3 Size (dhcpsd-0.0.8.tar.xz) = 103576 bytes @ 1.4 log @Update to dhcpsd-0.0.7 with the following changes: * Add support for Darwin / macOS * dhcpsd: -w waits for dynmically created interfaces * sanitize_rfc1035: return early on error at start @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2025/12/16 22:28:31 roy Exp $ d3 3 a5 3 BLAKE2s (dhcpsd-0.0.7.tar.xz) = 2973f00284429b9768b18adf6630cdabd7c9b7bc864b447b9ac22007f3b13a6f SHA512 (dhcpsd-0.0.7.tar.xz) = 72a0da041ef559ae630f553b27630dc18271e61c2fa0040eca169699e63635658b9aa6a1b3739b87b203b9c4c0a30a42f870afa91fc59f7bef5a606ef96766c1 Size (dhcpsd-0.0.7.tar.xz) = 102992 bytes @ 1.3 log @Update to dhcpsd-0.0.6 with the following changes: * DHCP: Fix copying out FQDN hostname * lua: add add_domain function to encode a string using RFC 1035 * DHCP: work with the broadcast flag correctly * DHCP: Sanitize incoming hostnames for RFC1053 conformance * DHCP: Fix plugin leasetime @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2025/12/14 11:00:00 roy Exp $ d3 3 a5 3 BLAKE2s (dhcpsd-0.0.6.tar.xz) = a623c776818760e36f7128906e9c9cfa577c2a5b68120cb95cc77a3ae6331da9 SHA512 (dhcpsd-0.0.6.tar.xz) = f473cceeaac9a0362832dbaa1e3fe3ecb52c147f7401c51bb2209250cd9ef2a4499d34dbfeeeb4bdbc4cea994222486c48bfc1666ee888f536a26e1a081eb5c6 Size (dhcpsd-0.0.6.tar.xz) = 96544 bytes @ 1.2 log @Update to dhcpsd-0.0.5 with the following changes: * lua: add add_uint8, add_uint16 and add_uint32 functions * lua: allow a hostname and pool to define a lease time * kqueue/epoll support * dhcpsd: don't have a controlling TTY on fork @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1 2025/10/23 16:36:17 roy Exp $ d3 3 a5 3 BLAKE2s (dhcpsd-0.0.5.tar.xz) = 3a63134eaf71ebce65eed659b5907981b5a6757dc6691a56d8a958a32f7547f7 SHA512 (dhcpsd-0.0.5.tar.xz) = 01cd407e1b512a333b11955784a62ffb1468e8b024d0595f0b2e99f05798b0558c17a0d09e2c4f9a84552e9c0376b978820e89f3e2d018b6d23474e71624b0a4 Size (dhcpsd-0.0.5.tar.xz) = 95348 bytes @ 1.1 log @Import dhcpsd-0.0.4 This is a DHCP server, driven by plugins rather than a specific configuration. There is an auto plugin which makes an opinionated automatic DHCP setup based on your IP address. There is a leasefile plugin which stores the leases to a persistent flat file periodically. There is an ethers plugin to lookup a nodes hostname from their ethernet address. There is an addrinfo plugin to lookup a nodes ip address from their hostname. There is an ICMP plugin to detect if an ip address is in use before offering it. And if that is not enough there is a LUA plugin which allows you to script pretty much everything, but there is likely room for improvement here. Out of the box, dhcpsd is fast by using 2 hashmaps for clientid and ip address lookups and then by using a Red Black tree for lease expiry ordering. dhcpsd is written in C and uses Verstable for a hashmap and NetBSD's Red Black tree. It's also event driven with timeouts and callbacks which allows for example the ICMP plugin to hold the DHCP request until finished and then continue it once done and dhcpsd will process other tasks in the middle of this. dhcpsd is also secure by supporting Capsicum from FreeBSD, pledge from OpenBSD send SECCOMP from Linux. Other OS's enjoy a POSIX resource limited chrooted sandbox. I hope you all enjoy using this as much as I have creating it :) @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 BLAKE2s (dhcpsd-0.0.4.tar.xz) = 66455ed45d0018918f1aeb5cc191b1bb20e7982b63a88d8f65284b733bcec20b SHA512 (dhcpsd-0.0.4.tar.xz) = 60e3eab7a3a04c4adf5a68e3a93766cafc88cc1c4e22878ff70f7a64bc8402ce0cf9d2251022af7adf0ce9c65882ef95460e796defb3c40c0fc672b945c604bb Size (dhcpsd-0.0.4.tar.xz) = 90632 bytes @