Skip to content

Commit 1556fbe

Browse files
committed
unbound: minimal fix for odhcpd lease file parsing
Current odhcpd in master writes MAC addresses with colons in his lease file, this new odhcpd format leads to a crash loop in unbound (if DHCPv4 to SLAAC is selected). Just remove the colons, before the processing in slaac_eui64 begins, fixes #28032 Signed-off-by: Dirk Brenken <[email protected]>
1 parent f4cf114 commit 1556fbe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

net/unbound/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=unbound
1111
PKG_VERSION:=1.24.0
12-
PKG_RELEASE:=1
12+
PKG_RELEASE:=2
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1515
PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound

net/unbound/files/odhcpd.awk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ function ipv6_ptr( ipv6, arpa, ary, end, m, n, new6, sz, start ) {
190190
##############################################################################
191191

192192
function slaac_eui64( mac, ary, glbit, eui64 ) {
193+
# Remove any colons from mac
194+
gsub(":", "", mac) ;
195+
193196
if ( length(mac) >= 12 ) {
194197
# RFC2373 and use DHCPv4 registered MAC to find SLAAC addresses
195198
split( mac , ary , "" ) ;

0 commit comments

Comments
 (0)