From nobody@FreeBSD.ORG  Sun Nov 26 12:47:05 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id D52A437B479; Sun, 26 Nov 2000 12:47:05 -0800 (PST)
Message-Id: <20001126204705.D52A437B479@hub.freebsd.org>
Date: Sun, 26 Nov 2000 12:47:05 -0800 (PST)
From: seraf@2600.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: static link-level route bug?
X-Send-Pr-Version: www-1.0

>Number:         23118
>Category:       misc
>Synopsis:       static link-level route bug?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 26 12:50:01 PST 2000
>Closed-Date:    Thu Jun 7 07:22:44 PDT 2001
>Last-Modified:  Thu Jun 07 07:24:00 PDT 2001
>Originator:     Dominick LaTrappe
>Release:        4.1-20001102-STABLE
>Organization:
>Environment:
FreeBSD ghfggerwg 4.1-20001102-STABLE FreeBSD 4.1-20001102-STABLE #666: Sun Nov 19 14:06:59 UTC 2000     dominick@ghfggerwg:/usr/src/sys/compile/HOHEHF  i386
>Description:
I add a static link-level route with route(8), and when I look it up with netstat(8), the first octet of the ARP address is missing.  Once this routing table entry is in place, the destination becomes unreachable, and the "use" flag on the entry never increments.
>How-To-Repeat:
# route add -host 10.20.30.40 -link 0:a:b:c:d:e -iface fxp0 -static
add host 10.20.30.40: gateway 0:a:b:c:d:e
# netstat -nr | grep 10.20.30.40
10.20.30.40        a:b:c:d:e          UHLS        0        0     fxp0
                   ^^^^^^^^^

>Fix:


>Release-Note:
>Audit-Trail:

From: Thomas Moestl <tmoestl@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: seraf@2600.com
Subject: Re: misc/23118: static link-level route bug
Date: Wed, 6 Dec 2000 00:24:03 +0100

 > >Number:         23118
 > >Category:       misc
 > >Synopsis:       static link-level route bug?
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:  
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Sun Nov 26 12:50:01 PST 2000
 > >Closed-Date:    
 > >Last-Modified:  
 > >Originator:     Dominick LaTrappe
 > >Release:        4.1-20001102-STABLE
 > >Organization:
 > >Description:
 > I add a static link-level route with route(8), and when I look it up with 
 > netstat(8), the first octet of the ARP address is missing.  Once this routing 
 > table entry is in place, the destination becomes unreachable, and the "use" 
 > flag on the entry never increments.
 > >How-To-Repeat:
 > # route add -host 10.20.30.40 -link 0:a:b:c:d:e -iface fxp0 -static
 This is wrong: -iface does _not_ take an argument (fxp0 is interpretated
 as netmask here!). Also, a link address has to be specified
 with a leading separator if you do not specify an interface at the start
 (see linkaddr(3); this is not documented in route(8)!).
 The correct call would be:
 	route add -host 10.20.30.40 -link :0:a:b:c:d:e -iface -static
 or, if you explicitely want to use fxp0
 	route add -host 10.20.30.40 -link fxp0:0:a:b:c:d:e -iface -static
 
 HTH,
 
 	- thomas
 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Thu Jun 7 07:22:44 PDT 2001 
State-Changed-Why:  
Asked and answered. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23118 
>Unformatted:
