From gpalmer@orion.webspan.net  Sun Sep 29 19:26:49 1996
Received: from mail2.webspan.net (mail2.webspan.net [206.154.70.7])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA06504
          for <freebsd-gnats-submit@freebsd.org>; Sun, 29 Sep 1996 19:26:45 -0700 (PDT)
Received: from orion.webspan.net (root@orion.webspan.net [206.154.70.41]) 
	  by mail2.webspan.net (8.7.5/8.7.3) with ESMTP id WAA15350
	  for <freebsd-gnats-submit@freebsd.org>; Sun, 29 Sep 1996 22:26:50 -0400 (EDT)
Received: from localhost (gpalmer@localhost [127.0.0.1]) 
          by orion.webspan.net (8.7.5/8.6.12) with SMTP id WAA17921
          for <freebsd-gnats-submit@freebsd.org>; Sun, 29 Sep 1996 22:26:35 -0400 (EDT)
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.18]) 
          by orion.webspan.net (8.7.5/8.6.12) with ESMTP id WAA17774
          for <gpalmer@webspan.net>; Sun, 29 Sep 1996 22:25:28 -0400 (EDT)
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.7.5/8.7.3) id TAA05929;
          Sun, 29 Sep 1996 19:25:32 -0700 (PDT)
Message-Id: <199609300225.TAA05929@freefall.freebsd.org>
Date: Sun, 29 Sep 1996 19:25:32 -0700 (PDT)
From: graphix@iastate.edu
To: freebsd-gnats-submit@freebsd.org
Subject: rarpd does not appear to work
X-Send-Pr-Version: www-1.0

>Number:         1693
>Category:       bin
>Synopsis:       rarpd does not appear to work
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 29 19:30:04 PDT 1996
>Closed-Date:    Wed Nov 27 12:55:05 PST 1996
>Last-Modified:  Wed Nov 27 12:56:39 PST 1996
>Originator:     Kent Vander Velden
>Release:        -current
>Organization:
Iowa State University
>Environment:
FreeBSD pseudo.cc.iastate.edu 2.2-CURRENT FreeBSD 2.2-CURRENT #0: Sun Sep 22 00:08:01 CDT 1996     root@pseudo.cc.iastate.edu:/usr/src/sys/compile/PSEUDO  i386


>Description:
Recently I bought an aging hp9000/300 and installed NetBSD on it.  This
is a diskless system and thus booting, root and swap are done over nfs.
As part of the hp's boot sequence it sends a rarp request.  When 
using the FreeBSD's rarpd these requests are never answered.  If I 
use NetBSD's with a line '#undef __FreeBSD__' after the includes the
requests are answered.  I compared FreeBSD's, OpenBSD's and NetBSD's
rarpd and found while OpenBSD's and NetBSD's rarpd are nearly identical
FreeBSD's was very different making finding the difference that makes
the others work difficult.
>How-To-Repeat:
Try running rarpd (in my case 'rarpd ed0') and make an rarp request
and watch the traffic with tcpdump.

>Fix:
Would it be possible to replace our rarpd with NetBSD's or OpenBSD's?
>Release-Note:
>Audit-Trail:

From: Bill Fenner <fenner@parc.xerox.com>
To: graphix@iastate.edu, wpaul@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/1693: rarpd does not appear to work 
Date: Mon, 30 Sep 1996 11:59:58 PDT

 In message <199609300225.TAA05929@freefall.freebsd.org> you write:
 >Would it be possible to replace our rarpd with NetBSD's or OpenBSD's?
 
 I think a better thing to do would be to replace it with an updated
 version from ftp.ee.lbl.gov, where it originally came from.  Bill Paul
 had been talking about doing this; Bill, are you still planning on this?
 
   Bill

From: Bill Paul <wpaul>
To: fenner@parc.xerox.com (Bill Fenner)
Cc: graphix@iastate.edu, freebsd-gnats-submit@freebsd.org
Subject: Re: bin/1693: rarpd does not appear to work
Date: Mon, 30 Sep 1996 15:37:01 -0700 (PDT)

 > 
 > In message <199609300225.TAA05929@freefall.freebsd.org> you write:
 > >Would it be possible to replace our rarpd with NetBSD's or OpenBSD's?
 > 
 > I think a better thing to do would be to replace it with an updated
 > version from ftp.ee.lbl.gov, where it originally came from.  Bill Paul
 > had been talking about doing this; Bill, are you still planning on this?
 > 
 >   Bill
 > 
 
 I started playing with it last night, actually. However I need to
 rummage around for a spare Sun CPU that I can test with. The updated
 version from the bpf distribution actually compiles without any
 modifications on FreeBSD, but I can't confirm that it works just yet.
 
 -Bill

From: Bill Fenner <fenner@parc.xerox.com>
To: Kent Vander Velden <graphix@iastate.edu>
Cc: Bill Paul <wpaul@freefall.freebsd.org>, fenner@parc.xerox.com,
        freebsd-gnats-submit@freebsd.org
Subject: Re: bin/1693: rarpd does not appear to work 
Date: Mon, 30 Sep 1996 17:18:27 PDT

 Kent,
 
   It's in bpf-1.1.tar.Z, in util/rarpd .  To make it work on 2.1.5,
 you will need to add
 
 	ep->ether_type = ntohs(ep->ether_type);
 
 to the rarp_reply() function, to put the ethertype in the order that
 the 2.1.5 bpf output routine wants it in.  If you are using -current,
 this bug is fixed and the sources should be usable directly.
 
   Bill

From: Kent Vander Velden <graphix@iastate.edu>
To: Bill Paul <wpaul@freefall.freebsd.org>
Cc: fenner@parc.xerox.com, freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/1693: rarpd does not appear to work 
Date: Mon, 30 Sep 1996 18:47:26 CDT

 In message <199609302237.PAA12607@freefall.freebsd.org>, wpaul@freefall.freebsd.org writ
 es:
 >> 
 >> In message <199609300225.TAA05929@freefall.freebsd.org> you write:
 >> >Would it be possible to replace our rarpd with NetBSD's or OpenBSD's?
 >> 
 >> I think a better thing to do would be to replace it with an updated
 >> version from ftp.ee.lbl.gov, where it originally came from.  Bill Paul
 >> had been talking about doing this; Bill, are you still planning on this?
 >> 
 >>   Bill
 >> 
 >
 >I started playing with it last night, actually. However I need to
 >rummage around for a spare Sun CPU that I can test with. The updated
 >version from the bpf distribution actually compiles without any
 >modifications on FreeBSD, but I can't confirm that it works just yet.
 >
 >-Bill
 
   As soon as I get home I would more than happy to check the version
 that you refer to from ftp.ee.lbl.gov.
 
 ---
 Kent Vander Velden
 graphix@iastate.edu

From: The Unknown User-ID (13236) <unknown@iastate.edu>
To: Bill Fenner <fenner@parc.xerox.com>
Cc: wpaul@freefall.freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: bin/1693: rarpd does not appear to work 
Date: Mon, 30 Sep 1996 21:15:31 CDT

 In message <96Sep30.171838pdt.177476@crevenia.parc.xerox.com>, fenner@parc.xero
 x.com writes:
 >Kent,
 >
 >  It's in bpf-1.1.tar.Z, in util/rarpd .  To make it work on 2.1.5,
 >you will need to add
 >
 >	ep->ether_type = ntohs(ep->ether_type);
 >
 >to the rarp_reply() function, to put the ethertype in the order that
 >the 2.1.5 bpf output routine wants it in.  If you are using -current,
 >this bug is fixed and the sources should be usable directly.
 >
 >  Bill
 
   This version responds but there are problems with byte ordering.  The
 ip address that is sent back is in reverse order.
 
   Thanks.
 
 ---
 Kent Vander Velden
 graphix@iastate.edu
State-Changed-From-To: open->closed 
State-Changed-By: fenner 
State-Changed-When: Wed Nov 27 12:55:05 PST 1996 
State-Changed-Why:  
A fixed version of LBL's util/rarpd from bpf-1.1 was imported 
into the tree. 
>Unformatted:
