Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2007 10:52:10 +0100
From:      "Bruce M. Simpson" <bms@FreeBSD.org>
To:        LiuJiusheng <liujiusheng@galaxywind.com>
Cc:        freebsd-net@freebsd.org, gurney_j@resnet.uoregon.edu
Subject:   Re: Routing problems
Message-ID:  <4720674A.9090009@FreeBSD.org>
In-Reply-To: <471FF1AC.4000800@galaxywind.com>
References:  <471EF736.1070207@galaxywind.com>	<20071024185610.GE39759@funkthat.com> <471FF1AC.4000800@galaxywind.com>

next in thread | previous in thread | raw e-mail | index | archive | help
LiuJiusheng wrote:
> Linux takes 6.6.6.2 as gateway for route 4.4.4/24. But some Oses have the gateway 2.2.2.2. (treat 4.4.4/24 as a recursive route).
> Is there any standard for this? 
>   
No, this is entirely implementation specific. Some implementations of IP 
forwarding resolve the next-hop recursively. Some don't. There is no de 
facto requirement for them to do so in any published standard I'm aware of.

The fact that FreeBSD doesn't is largely out of keeping the 
implementation simple - if the code were to perform recursive resolution 
of the next-hop, then safe bounds would need to be found for the 
recursion. It is cheaper to do this on a forwarding entry add of course, 
but routes can and do change.

BMS



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