dhcpleasequery problems - 4.2.2
Jack Kielsmeier
jackkiel at netins.net
Tue Oct 18 13:49:45 UTC 2011
Whoops, good catch on the line number.
I will test removing the code in question to see if the queries function. I
will report back on the results.
Thank You,
-
Jack Kielsmeier
netINS Systems Administrator
systems at netins.net
-----Original Message-----
From: dhcp-users-bounces+jackkiel=netins.net at lists.isc.org
[mailto:dhcp-users-bounces+jackkiel=netins.net at lists.isc.org] On Behalf Of
Shawn Routhier
Sent: Monday, October 17, 2011 5:20 PM
To: Users of ISC DHCP
Subject: Re: dhcpleasequery problems - 4.2.2
On Oct 17, 2011, at 12:10 PM, Jack Kielsmeier wrote:
> Hello,
>
> We are running ISC DHCP 4.2.2 in a redundant fashion (failover peer)
> in Solaris 11 zones (compiled from source).
>
> Recently, we have determined that we need to make use of the DHCP
> leasequery option. In testing, we notice the following occurring in our
logs:
>
> ------------ LOGS ------------
>
> Oct 17 13:19:03 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:19:09 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:19:15 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:19:21 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:22:34 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
> Oct 17 13:22:39 dhcp-dsm dhcpd: [ID 702911 local5.error] Impossible
> condition at dhcpleasequery.c:492.
>
> ------------ END LOGS ------------
>
I think you want line 492 not 432
> Line 432 looks like this:
>
> lease_dereference(&lease, MDL);
>
>
Line 492 deals with checking the lease ends time against the current time.
It also appears to have a bug. I'll have to go look at the history to
figure out what it thinks it's doing.
It appears that you can simply remove the code from 490 to 498
if (time_expiry < cur_time {
stuff
}
But I haven't tested that or verified that the time_expiry isn't being used
in some odd way I don't understand yet. If you do test it we would be
interested in the results.
> Any assistance with this matter would be greatly appreciated. I do not
> know what else to provide (such as the entire dhcpd.conf file, which
> is pretty long).
>
> Thank You,
>
> -
> Jack Kielsmeier
> netINS Systems Administrator
> systems at netins.net
>
_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users
More information about the dhcp-users
mailing list