Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2002 12:20:04 -0800 (PST)
From:      William Carrel <william.carrel@infospace.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/16318: Fix for wrong interface when adding new routes
Message-ID:  <200203292020.g2TKK4321212@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/16318; it has been noted by GNATS.

From: William Carrel <william.carrel@infospace.com>
To: freebsd-gnats-submit@freebsd.org
Cc: william.a@carrel.org
Subject: Re: kern/16318: Fix for wrong interface when adding new routes
Date: Fri, 29 Mar 2002 12:18:30 -0800

 I can confirm that this problem still occurs in RELENG_4.
 
 I'm not sure if the patch I provided is still valid.
 
 To reproduce on a system with two interfaces...
 
 ifconfig if0 10.0.1.0 -netmask 255.255.255.0
 ifconfig if1 10.0.2.0 -netmask 255.255.255.0
 route add 10.0.2.1 -interface if0
 route add default 10.0.2.1
 
 netstat -rnfinet will show that the default route points toward if1 even 
 though a static route for 10.0.2.1 shows it should be going to if0.  
 Since the route add default won't take an -interface argument it gets a 
 little difficult to handle.
 
 The patch provided against the ancient version fixed it there.  I'm not 
 sure how much that code has changed in the past year or two.
 
 p.s. apologies for the late reply
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203292020.g2TKK4321212>