Skip to content

Commit ea79b58

Browse files
committed
odhcpd: update to Git HEAD (2025-10-02)
b14cf98 router: log “Sending a RA on lan” at LOG_DEBUG c2810fe odhcpd: update cmake file 8c2c065 odhcpd: convert README to markdown 3b96480 odhcpd: allow the use of an alternative cfg file 7328bfe odhcpd: remove confusing #defines cdb9e5b odhcpd: improve RFC9096 § 3.5 SLAAC compliance RFC9096 § 3.5 SLAAC compliance introduces a new config option (odhcpd piofolder), which may wear out the flash under certain conditions (for example: ISPs with dynamic IPv6 prefixes which disconnect the clients every X hours). Therefore, setting "dhcp.odhcpd.piofolder" to persistent storage in the router flash is not advisable and should be set to other kinds of persistent storage such as USBs, SDs, NVMEs... In order to prevent wearing out the router flash it's set to ephemeral storage by default (tmp): uci set dhcp.odhcpd.piofolder="/tmp/odhcpd-piofolder" Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
1 parent 11a7c77 commit ea79b58

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

package/network/services/odhcpd/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ PKG_RELEASE:=1
1212

1313
PKG_SOURCE_PROTO:=git
1414
PKG_SOURCE_URL=$(PROJECT_GIT)/project/odhcpd.git
15-
PKG_MIRROR_HASH:=4745093b58a221252fd092a40f2902e2a45a8ec972bcaa8592602f20acf26aa2
16-
PKG_SOURCE_DATE:=2025-09-27
17-
PKG_SOURCE_VERSION:=bc9f9d93d4d6b8feb7b19235d7f0371480fc679d
15+
PKG_MIRROR_HASH:=1ad44323f7803fdb5d1b2492d47e4b4b0fbc3d4c7c171b270422b10535c2a284
16+
PKG_SOURCE_DATE:=2025-10-02
17+
PKG_SOURCE_VERSION:=b14cf98c914d8582f18c7b263814797366fa185d
1818

1919
PKG_MAINTAINER:=Hans Dedecker <dedeckeh@gmail.com>
2020
PKG_LICENSE:=GPL-2.0
@@ -29,7 +29,7 @@ define Package/odhcpd/default
2929
SECTION:=net
3030
CATEGORY:=Network
3131
TITLE:=OpenWrt DHCPv6(-PD)/RA Server & Relay
32-
DEPENDS:=+libubox +libuci +libubus +libnl-tiny
32+
DEPENDS:=+libjson-c +libubox +libuci +libubus +libnl-tiny
3333
endef
3434

3535
define Package/odhcpd/default/description

package/network/services/odhcpd/files/odhcpd.defaults

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/sh
2-
uci -q get dhcp.odhcpd && exit 0
2+
3+
if [ -n "$(uci -q get dhcp.odhcpd)" ]; then
4+
if [ -z "$(uci -q get dhcp.odhcpd.piofolder)" ]; then
5+
uci set dhcp.odhcpd.piofolder=/tmp/odhcpd-piofolder
6+
uci commit dhcp
7+
fi
8+
9+
exit 0
10+
fi
11+
312
touch /etc/config/dhcp
413

514
. /usr/share/libubox/jshn.sh
@@ -42,6 +51,7 @@ set dhcp.odhcpd.maindhcp=$ODHCPDONLY
4251
set dhcp.odhcpd.leasefile=/tmp/hosts/odhcpd
4352
set dhcp.odhcpd.leasetrigger=/usr/sbin/odhcpd-update
4453
set dhcp.odhcpd.loglevel=4
54+
set dhcp.odhcpd.piofolder=/tmp/odhcpd-piofolder
4555
set dhcp.lan.dhcpv4=$V4MODE
4656
set dhcp.lan.dhcpv6=$V6MODE
4757
set dhcp.lan.ra=$V6MODE

0 commit comments

Comments
 (0)