[dhcwg] Re: udhcpd Win98 interoperability

Russ Dill <Russ.Dill@asu.edu> Tue, 27 August 2002 18:35 UTC

Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged)) by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA06168 for <dhcwg-archive@odin.ietf.org>; Tue, 27 Aug 2002 14:35:38 -0400 (EDT)
Received: (from mailnull@localhost) by www1.ietf.org (8.11.6/8.11.6) id g7RIafH25784 for dhcwg-archive@odin.ietf.org; Tue, 27 Aug 2002 14:36:41 -0400
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by www1.ietf.org (8.11.6/8.11.6) with ESMTP id g7RIafo25781 for <dhcwg-web-archive@optimus.ietf.org>; Tue, 27 Aug 2002 14:36:41 -0400
Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged)) by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA06158 for <dhcwg-web-archive@ietf.org>; Tue, 27 Aug 2002 14:35:07 -0400 (EDT)
Received: from www1.ietf.org (localhost.localdomain [127.0.0.1]) by www1.ietf.org (8.11.6/8.11.6) with ESMTP id g7RIXno25670; Tue, 27 Aug 2002 14:33:49 -0400
Received: from ietf.org (odin.ietf.org [132.151.1.176]) by www1.ietf.org (8.11.6/8.11.6) with ESMTP id g7RI9Xo24920 for <dhcwg@optimus.ietf.org>; Tue, 27 Aug 2002 14:09:33 -0400
Received: from fed1mtao04.cox.net (fed1mtao04.cox.net [68.6.19.241]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA04775 for <dhcwg@ietf.org>; Tue, 27 Aug 2002 14:07:59 -0400 (EDT)
Received: from localhost.localdomain ([68.2.221.180]) by fed1mtao04.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020827180857.HUGQ4808.fed1mtao04.cox.net@localhost.localdomain>; Tue, 27 Aug 2002 14:08:57 -0400
From: Russ Dill <Russ.Dill@asu.edu>
To: cstueckjuergen@web.de
Cc: dhcwg@ietf.org
In-Reply-To: <200208230659.g7N6xsX23089@mailgate5.cinetic.de>
References: <200208230659.g7N6xsX23089@mailgate5.cinetic.de>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8
Date: Tue, 27 Aug 2002 11:08:56 -0700
Message-Id: <1030471736.4957.18.camel@timmy>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [dhcwg] Re: udhcpd Win98 interoperability
Sender: dhcwg-admin@ietf.org
Errors-To: dhcwg-admin@ietf.org
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Id: <dhcwg.ietf.org>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

 
> > define 'ours' a little better, do you mean if there is a static mapping 
> > for the address that we take care of? 
> >  
>  
> OK, I would say the requested address should be NAKed if 
> - we have static mapping for it on another client 
> - it is already assigned to one of our other clients 
> - it was assigned to the requesting client, but the lease has already timed out 
>  
> Do you think this is reasonable? 
>   

I'm not sure if nak'ing a lease that timed out is the correct behavior
if the address is still available, the lease can just be extended as if
it never ran out (apparent disagreement on system clocks). Here is the
new behavior my server has if it has no record of the client:

lease = find_lease_by_chaddr(packet.chaddr);

...

if (lease) {

...

/* what to do if we have no record of the client */
} else if (server_id) {
	/* SELECTING State */
                        
} else if (requested) {
	/* INIT-REBOOT State */
	if ((lease = find_lease_by_yiaddr(requested_align))) {
		if (lease_expired(lease)) {
			/* probably best if we drop this lease */
                	memset(lease->chaddr, 0, 16);
		/* make some contention for this address */
		} else sendNAK(&packet);
	} else if (requested_align < server_config.start ||
		   requested_align > server_config.end) {
		sendNAK(&packet);
	} /* else remain silent */

} else {
	/* RENEWING or REBINDING State */
}


note: code is under the terms of the GPL

_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www1.ietf.org/mailman/listinfo/dhcwg