Re: Problem with CMU Bootpd-DD2.4.3

"David Crowe-Jr." <crowed@osshe.edu> Thu, 23 May 1996 15:40 UTC

Received: from ietf.cnri.reston.va.us by IETF.CNRI.Reston.VA.US id aa22720; 23 May 96 11:40 EDT
Received: from CNRI.Reston.VA.US by IETF.CNRI.Reston.VA.US id aa22716; 23 May 96 11:40 EDT
Received: from reef.bucknell.edu by CNRI.Reston.VA.US id aa10246; 23 May 96 11:40 EDT
Received: from localhost by reef.bucknell.edu with SMTP (5.65/IDA-1.2.8) id AA24525; Thu, 23 May 1996 11:37:00 -0400
Date: Thu, 23 May 1996 11:37:00 -0400
Message-Id: <199605231508.IAA14438@osshe.edu>
Errors-To: droms@bucknell.edu
Reply-To: dhcp-v4@bucknell.edu
Originator: dhcp-v4@bucknell.edu
X-Orig-Sender: dhcp-v4@bucknell.edu
Precedence: bulk
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: "David Crowe-Jr." <crowed@osshe.edu>
To: Multiple recipients of list <dhcp-v4@bucknell.edu>
Subject: Re: Problem with CMU Bootpd-DD2.4.3
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Comment: Discussion of DHCP for IPv4
X-Mailer: ELM [version 2.4 PL21]

Hi Daran,

Yes, I had the same problem (DHCPRELEASE packets causing a Bus Error) and 
found the error in the code - haven't made the time to send this patch in
to a maintainer yet though...

> 
>Has anyone else experienced this problem, and if so, do you have a 
>solution/fix?

Here's a context diff for the bootpd.c file where the error occurs:

---
*** bootpd.c.orig	Thu May 23 07:43:44 1996
--- bootpd.c	Thu May 23 07:46:29 1996
***************
*** 1549,1555 ****
  					dhcp = *p;
  					break;
  				case TAG_DHCP_SERVERID:
! 					isme = (len==4) && my_ip_addr.s_addr == ((struct in_addr *)p)->s_addr;
  					break;
  				} /* switch */
  				p += len;
--- 1551,1557 ----
  					dhcp = *p;
  					break;
  				case TAG_DHCP_SERVERID:
! 					isme = ((len==4) && (bcmp(&my_ip_addr.s_addr, p, 4) == 0));
  					break;
  				} /* switch */
  				p += len;
---

Works fine here.

David

-- 
David Crowe, Jr.                                  Email: crowed@osshe.edu
OSSHE Network Engineer                            Phone: (541) 737-2868
AdS B211L                                         FAX:   (541) 737-0850
Corvallis, OR 97331