Missing Information in ACK from DHCPInform

David W. Hankins David_Hankins at isc.org
Fri Aug 22 23:37:45 UTC 2003


On Thu, Aug 21, 2003 at 01:55:17PM -0500, Stephens, Bill {PBSG} wrote:
> After running the debugger, I can't make heads or tails out of where the
> dhcpinform subroutine should be looking up the options from the subnet
> configuration settings.

unless i miss my mark, server/dhcp.c:1003:

        if (subnet)
                execute_statements_in_scope ((struct binding_value **)0,
                                             packet, (struct lease *)0,
                                             (struct client_state *)0,
                                             packet -> options, options,
                                             &global_scope, subnet -> group,
                                             (struct group *)0);

the if(subnet) check heading that shouldn't fail, if subnet is not set
by that time it would log an error and return.

other than the fact that dhcprequest() gets the subnet subnet pointer
from the lease, rather than from the client addr, this is identical.

a good place to start as ted mentioned is verifying the subnet is matching
the correct subnet structure.

otherwise, it's all common code, and nothing is jumping out at me as
being something that's done differently between the two.

-- 
David W. Hankins		"If you don't do it right the first time,
DHCPD Maintainer			you'll just have to do it again."
						-- Jack T. Hankins


More information about the dhcp-hackers mailing list