From nobody@FreeBSD.ORG Mon Nov 15 16:09:20 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 046E214E34; Mon, 15 Nov 1999 16:09:19 -0800 (PST)
Message-Id: <19991116000919.046E214E34@hub.freebsd.org>
Date: Mon, 15 Nov 1999 16:09:19 -0800 (PST)
From: ambrisko@whistle.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Fix for "arplookup 127.0.0.1 failed: could not allocate llinfo"
X-Send-Pr-Version: www-1.0

>Number:         14913
>Category:       conf
>Synopsis:       Fix for "arplookup 127.0.0.1 failed: could not allocate llinfo"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 15 16:10:01 PST 1999
>Closed-Date:    Sun Jan 2 03:00:38 PST 2000
>Last-Modified:  Sun Jan  2 03:12:53 PST 2000
>Originator:     Doug ambrisko
>Release:        Current
>Organization:
Whistle
>Environment:
FreeBSD ibmpc.whistle.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Mon Nov 15 15:42:33 PST 1999     root@ibmpc.whistle.com:/usr/src/sys/compile/IBMPC  i386
>Description:
When using dhcp to configure ethernet devices and not specifying
"network_interfaces" so it defaults to "auto", rc.network using
ifconfig -l to get the list of ethernet devices since fxp0 is < lo0.
dhclient is run on fxp0 before lo0 is instantiated.  So making the 
route of fxp0 to 127.0.0.1 makes things go screwy and you get the
following messages and break amd.

arpresolve: can't allocate llinfo for 127.0.0.1rt
arplookup 127.0.0.1 failed: could not allocate llinfo
>How-To-Repeat:

>Fix:
*** rc.network	Sun Sep 19 14:32:42 1999
--- /etc/rc.network	Mon Nov 15 15:59:17 1999
***************
*** 73,79 ****
  	#
  	case ${network_interfaces} in
  	[Aa][Uu][Tt][Oo])
! 		network_interfaces="`ifconfig -l`"
  		;;
  	esac
  
--- 73,80 ----
  	#
  	case ${network_interfaces} in
  	[Aa][Uu][Tt][Oo])
! 		#setup lo0 first or things break
! 		network_interfaces="lo0 `ifconfig -l | sed 's/lo0//`"
  		;;
  	esac
  


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Sun Jan 2 03:00:38 PST 2000 
State-Changed-Why:  
Fixed in src/contrib/isc-dhcp/client/scripts/freebsd, 
revs 1.8 (-current) and 1.1.1.2.2.7 (-stable). 
>Unformatted:
