From wb@arb-phys.uni-dortmund.de  Thu Jul 13 01:52:42 1995
Received: from gisli.arb-phys.uni-dortmund.de (Sgisli.arb-phys.uni-dortmund.de [192.109.44.250])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id BAA26198
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Jul 1995 01:52:37 -0700
Received: (from wb@localhost) by gisli.arb-phys.uni-dortmund.de (8.6.9/8.6.9) id KAA10002; Thu, 13 Jul 1995 10:52:46 +0200
Message-Id: <199507130852.KAA10002@gisli.arb-phys.uni-dortmund.de>
Date: Thu, 13 Jul 1995 10:52:46 +0200
From: "Wilhelm B. Kloke" <wb@arb-phys.uni-dortmund.de>
Reply-To: wb@arb-phys.uni-dortmund.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: WIDE-dhcp doesn't work with FreeBSD-2.0 bpf
X-Send-Pr-Version: 3.2

>Number:         611
>Category:       kern
>Synopsis:       WIDE-dhcp doesn't work with FreeBSD-2.0 bpf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    davidg
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 13 02:00:02 1995
>Closed-Date:    Wed Jun 12 22:42:26 PDT 1996
>Last-Modified:  Wed Jun 12 22:43:57 PDT 1996
>Originator:     Wilhelm B. Kloke
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
Dipl.-Math. Wilhelm Bernhard Kloke
Institut fuer Arbeitsphysiologie an der Universitaet Dortmund
Ardeystrasse 67, D-44139 Dortmund, Tel. 0231-1084-257
>Environment:

	486DX with FreeBSD 2.0-RELEASE and bpf devices.

>Description:

	I tried to install WIDE dhcp-1.2.1 from wide.ad.jp. After
	some compilation quirks the systems works partially. Incoming
	messages are received correctly, but outgoing messages
	are clobbered.
	The following tcpdump lines show the problem

	 09:28:13.860838 0.0.0.0.0 > 255.255.255.255.dhcps: (request) xid:0x7d7b0900 secs:1 [|bootp]
	 			 4500 4801 0000 0000 3c11 7da6 0000 0000
	 			 ffff ffff 0000 4300 3401 0000 0101 0600
	 			 0009 7b7d 0100 0000 0000 0000 0000 0000
	 			 0000 0000 0000
	 09:28:13.863236 gisli ff:ff:ff:ff:ff:ff 54: rr [dsap 69] [ssap 0] 
	 			 4500 0148 d0cb 4000 2011 9c68 c06d 2c04
	 			 ffff ffff 0043 0044 0134 d0cb 0201 0600
	 			 7d7b 0900 0000 0000 0000 0000 c06d 2c06
	 			 0000 0000 0000
	 
	 Is it possible that there is a byte order problem? Look at the 
	 2nd, 13th, 16th and 17th for occurencies of reordered byte sequences.

	> Hmm.... I think so, too.
	> It may be a bug of FreeBSD-2.0 around Berkeley Packet Filter.

	> If it is bug of OS, dirty hacking is necessary to solve it.

	> --
	> Keio UNIV.
	> WIDE Project.
				> Akihiro Tominaga (tomy@sfc.wide.ad.jp)

	The fields 16 and 17 contain the field xid, which is just
	copied from input to output in the dhcp software, do Tominaga
	may be right in blaiming FreeBSD.

	There is some other problem, probably not related. If one
	tries to run the said software under gdb, gdb fails with 
	message
	> (gdb) run ed0 
	> Starting program: /usr/local/sbin/dhcps ed0
	> reading register eip (#8): Bad address.
	> (gdb) 

>How-To-Repeat:

	Load dhcp-1.2.1 from WIDE, handle FreeBSD like BSDI in Makefile
	and ifdef's, and try to get a BOOTP reply.


>Fix:
	
	None.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->pst 
Responsible-Changed-By: pst 
Responsible-Changed-When: Wed Feb 7 16:30:26 PST 1996 
Responsible-Changed-Why:  
State-Changed-From-To: open->closed 
State-Changed-By: pst 
State-Changed-When: Wed Jun 12 22:42:26 PDT 1996 
State-Changed-Why:  
WIDE DCHP port completely rewritten, should work fine now. 
In addtition, kern/247, which is a related bug, was fixed today.
Responsible-Changed-From-To: pst->davidg 
Responsible-Changed-By: pst 
Responsible-Changed-When: Wed Jun 12 22:43:08 PDT 1996 
Responsible-Changed-Why:  
David fixed the problem, should review this bug report for grins. 
>Unformatted:


