NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Re: bin/59046: dhcpd issue



I compiled the dhcpd with the specified options and started it at the command line.

bash-5.2# dhcpd -6 -cf /etc/dhcpd6.conf -f -lf /var/db/dhcpd6.leases 2>dhcpd.output > dhcpd.output
Abort trap (core dumped)

The output shows:

Internet Systems Consortium DHCP Server 4.4.2
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcpd6.conf
Database file: /var/db/dhcpd6.leases
PID file: dhcpd6.pid
Wrote 3 NA, 0 TA, 0 PD leases to lease file.
Bound to *:547
Listening on Socket/53/lagg0/2001:638:902:1::/64
Sending on   Socket/53/lagg0/2001:638:902:1::/64


No subnet6 declaration for bnx1 (no IPv6 addresses).
** Ignoring requests on bnx1.  If this is not what
   you want, please write a subnet6 declaration
   in your dhcpd.conf file for the network segment
   to which interface bnx1 is attached. **


No subnet6 declaration for wm1 (no IPv6 addresses).
** Ignoring requests on wm1.  If this is not what
   you want, please write a subnet6 declaration
   in your dhcpd.conf file for the network segment
   to which interface wm1 is attached. **


No subnet6 declaration for wm0 (no IPv6 addresses).
** Ignoring requests on wm0.  If this is not what
   you want, please write a subnet6 declaration
   in your dhcpd.conf file for the network segment
   to which interface wm0 is attached. **


No subnet6 declaration for bnx0 (no IPv6 addresses).
** Ignoring requests on bnx0.  If this is not what
   you want, please write a subnet6 declaration
   in your dhcpd.conf file for the network segment
   to which interface bnx0 is attached. **

Server starting service.
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:200b::1, peer address fe80::1c53:2c7f:acc8:7e3e
Can't find option with code 16
Sending Relay-reply to 2001:638:902:1::1 port 547
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:200b::1, peer address fe80::1c53:2c7f:acc8:7e3e
Can't find option with code 16
Picking pool address 2001:638:902:200b::105a
Advertise NA: address 2001:638:902:200b::105a to client with duid 00:01:00:01:19:e6:6e:92:00:15:5d:08:d0:15 iaid = 251663709 valid for 1200 seconds
Sending Relay-reply to 2001:638:902:1::1 port 547
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:200b::1, peer address fe80::1c53:2c7f:acc8:7e3e
Can't find option with code 16
Reply NA: address 2001:638:902:200b::105a to client with duid 00:01:00:01:19:e6:6e:92:00:15:5d:08:d0:15 iaid = 251663709 valid for 1200 seconds
Sending Relay-reply to 2001:638:902:1::1 port 547
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:2003::1, peer address fe80::41b:f428:e4e9:b238
Sending Relay-reply to 2001:638:902:1::1 port 547
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:2009::1, peer address fe80::6eb0:ceff:fe20:322b
Picking pool address 2001:638:902:2009::1950
Advertise NA: address 2001:638:902:2009::1950 to client with duid 00:03:00:01:6c:b0:ce:20:32:2b iaid = 1 valid for 1200 seconds
Unable to pick client prefix: no IPv6 pools on this shared network
Sending Relay-reply to 2001:638:902:1::1 port 547
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:200c::1, peer address fe80::d2bf:9cff:febf:a93f Reply NA: address 2001:638:902:200c::1653 to client with duid 00:03:00:01:d0:bf:9c:bf:a9:3f iaid = 2 valid for 1200 seconds
Sending Relay-reply to 2001:638:902:1::1 port 547
....
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:2004::1, peer address fe80::abf:b8ff:fe36:ae27 Reply NA: address 2001:638:902:2004::1223 to client with duid 00:03:00:01:08:bf:b8:36:ae:27 iaid = 11111 valid for 1200 seconds
Sending Relay-reply to 2001:638:902:1::1 port 547
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:2007::1, peer address fe80::642:1aff:fe1b:1729 Reply NA: address 2001:638:902:2007::1bb3 to client with duid 00:03:00:01:04:42:1a:1b:17:29 iaid = 22222 valid for 1200 seconds
Sending Relay-reply to 2001:638:902:1::1 port 547
/usr/src/external/mpl/dhcp/bin/server/../../dist/server/mdb6.c(2045): NULL pointer /usr/src/external/mpl/dhcp/bin/server/../../dist/server/mdb6.c(2074): negative refcnt Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:2009::1, peer address fe80::6eb0:ceff:fe20:322b
Picking pool address 2001:638:902:2009::1950
Advertise NA: address 2001:638:902:2009::1950 to client with duid 00:03:00:01:6c:b0:ce:20:32:2b iaid = 1 valid for 1200 seconds
....
Advertise NA: address 2001:638:902:2009::1950 to client with duid 00:03:00:01:6c:b0:ce:20:32:2b iaid = 1 valid for 1200 seconds
Unable to pick client prefix: no IPv6 pools on this shared network
Sending Relay-reply to 2001:638:902:1::1 port 547
/usr/src/external/mpl/dhcp/bin/server/../../dist/server/mdb6.c(2045): NULL pointer /usr/src/external/mpl/dhcp/bin/server/../../dist/server/mdb6.c(2074): negative refcnt Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:2008::1, peer address fe80::ce79:de58:8247:1605
....
The dhcpd works for a few hours with the messages shown here. The log file ends with:
....
Sending Relay-reply to 2001:638:902:1::1 port 547
Relay-forward message from 2001:638:902:1::1 port 547, link address 2001:638:902:200b::1, peer address fe80::1c53:2c7f:acc8:7e3e
Can't find option with code 16
Reply NA: address 2001:638:902:200b::105a to client with duid 00:01:00:01:19:e6:6e:92:00:15:5d:08:d0:15 iaid = 251663709 valid for 1200 seconds /usr/src/external/mpl/dhcp/bin/server/../../dist/server/dhcpv6.c(7008): negative refcnt!
(END)

If it helps I can provide the complete output file for download. During the last test a core file was also created. I can offer that too.


Thank you for your efforts

Regards
Uwe


On Thu, 6 Feb 2025, Christos Zoulas wrote:

Thanks!

Index: Makefile.inc
===================================================================
RCS file: /cvsroot/src/external/mpl/dhcp/Makefile.inc,v
retrieving revision 1.13
diff -u -p -u -r1.13 Makefile.inc
--- Makefile.inc        19 Feb 2024 20:39:13 -0000      1.13
+++ Makefile.inc        6 Feb 2025 18:43:36 -0000
@@ -14,6 +14,7 @@ BIND:=        ${.PARSEDIR}/bind
BINDDIST=      ${BIND}/dist
.PATH: ${DIST}/${DHCPSRCDIR}

+CPPFLAGS+= -DPOINTER_DEBUG
.if (${USE_INET6} != "no")
CPPFLAGS+=     -DDHCPv6
.endif




Home | Main Index | Thread Index | Old Index