From hench@tapc-e384.cae.uwm.edu  Wed Dec 21 01:08:20 1994
Received: from tapc-e384.cae.uwm.edu (tapc-e384.cae.uwm.edu [129.89.61.41]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id BAA02367 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Dec 1994 01:08:19 GMT
Received: (from root@localhost) by tapc-e384.cae.uwm.edu (8.6.9/8.6.9) id OAA12119; Mon, 19 Dec 1994 14:43:41 -0600
Message-Id: <199412192043.OAA12119@tapc-e384.cae.uwm.edu>
Date: Mon, 19 Dec 1994 14:43:41 -0600
From: user <hench@tapc-e384.cae.uwm.edu>
Reply-To: hench@tapc-e384.cae.uwm.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: Netboot ignores gateway
X-Send-Pr-Version: 3.2

>Number:         75
>Category:       misc
>Synopsis:       Netboot ignores gateway
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    core
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 21 01:10:25 1994
>Closed-Date:    Mon Nov 6 09:28:45 PST 1995
>Last-Modified:  Mon Nov  6 09:29:21 PST 1995
>Originator:     hench@cae.uwm.edu
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
College of Engineering University of Wisconsin Milwaukee.
>Environment:

	

>Description:

	
	netboot.com is ignoring the gw= tag. it is only using the bp_giaddr
	field to set the gateway, which is fine if you boot thru a bootp gatway
	or off an HP box :-) the rfc sez that field is for bootp gatways but
	HP fills it in anyhow (rfc doesn't say no....)

>How-To-Repeat:

	Attempt to use a gateway before routed is started (say to mount /usr)
	bootp server running on non hp box. (say freebsd)

>Fix:

add starting at line 578 in /usr/src/sys/i386/boot/netboot/main.c
this will cause the gw= tag to overide bp_giaddr.
(especially useful when bp_giaddr = 0.0.0.0

			case RFC1048_GATEWAY:
				convert_ipaddr(&arptable[ARP_GATEWAY].ipaddr, p+2);
				break;

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Mon Nov 6 09:28:45 PST 1995 
State-Changed-Why:  
Added suggested code.  Not tested, presumed OK. 
>Unformatted:


