[Top] [All Lists]

Re: icmp_unreachable uses wrong ip

To: Hasso Tepper <hasso@xxxxxxxxx>
Subject: Re: icmp_unreachable uses wrong ip
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Tue, 03 May 2005 00:04:48 +0200
Cc: "J. Simonetti" <jeroens@xxxxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <>
References: <> <> <> <>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.7) Gecko/20050420 Debian/1.7.7-2
Hasso Tepper wrote:
> Patrick McHardy wrote:
>>Why can't you simply add the prefered source address to the route?
> Because I don't know what it is. Router A knows what's the best path from 
> router A to router B, but he can't know (at least in cases where there are 
> more than 1 path between them) what's the best path from router B to router 
> A. Therefore you canät say which one is incoming interface in router A for 
> traffic from router B. And even if you know it in some moment, topology 
> might change in next moment (dynamic routing) etc.

Your patch can't guarantee that the address used is the same that was
used as nexthop by the previous hop in the path when multiple addresses
are configured on the incoming interface. So I don't think it achieves
much of your goal of making debugging complicated topologies easier.


<Prev in Thread] Current Thread [Next in Thread>