Re: Moving towards CMU dhcpd-3.4.0

Frans Streur <fstreur@solair1.inter.nl.net> Thu, 03 April 1997 14:08 UTC

Received: from cnri by ietf.org id aa27663; 3 Apr 97 9:08 EST
Received: from marge.bucknell.edu by CNRI.Reston.VA.US id aa09810; 3 Apr 97 9:08 EST
Received: from reef.bucknell.edu by mail.bucknell.edu; (5.65v3.2/1.1.8.2/17Jul96-0109PM) id AA27253; Thu, 3 Apr 1997 09:00:58 -0500
Date: Thu, 03 Apr 1997 09:00:58 -0500
Message-Id: <9704031323.AA18057@solair1.inter.NL.net>
Errors-To: droms@bucknell.edu
Reply-To: dhcp-v4@bucknell.edu
Originator: dhcp-v4@bucknell.edu
Sender: dhcp-v4@bucknell.edu
Precedence: bulk
From: Frans Streur <fstreur@solair1.inter.nl.net>
To: Multiple recipients of list <dhcp-v4@bucknell.edu>
Subject: Re: Moving towards CMU dhcpd-3.4.0
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Comment: Discussion of DHCP for IPv4
X-Mailer: Pegasus Mail for Win32 (v2.53/R1)

We are working with the DHCP service of CMU and use the a version 
with path 1-4 and some changes in utils.c . These changes were 
nessesary because of our Olivetti Unix servers and WFW 3.11 
workstations.

We had problems with the lease time configuration.

Here is the diff-output on the original and our new one.

---------------------------------------------------------------------
39a40
> #include "dhcpd.h"
83a85
> 	unsigned long value_net_order;
104c106,121
< 	bcopy(&value,cp+opt->cur,4);
---
> 
> 	switch(tag)
> 	{
> 	    case '3' :	value_net_order = htonl(value);
> 			bcopy(&value_net_order,cp+opt->cur,4);
> 			break;
> 	    case ';' :	value_net_order = htonl(value);
> 			bcopy(&value_net_order,cp+opt->cur,4);
> 			break;
> 	    case ':' :	value_net_order = htonl(value);
> 			bcopy(&value_net_order,cp+opt->cur,4);
> 			break;
> 	    default :	bcopy(&value,cp+opt->cur,4);
> 			break;
> 	}
> 
---------------------------------------------------------------------

As you see it is a rough change but is works well. I hope you can use 
it for the new patches/changes.

CU.
---------------------------------------------------------- 
   Frans Streur / Generale Bank Nederland / Systemen				
   Telefoon +31(010-270)3035 Telefax +31(010-270)3953				
   E-Mail f.streur@g-bank.nl 
----------------------------------------------------------