netdev
[Top] [All Lists]

Re: Fw: [Bugme-new] [Bug 4180] New: masquarade and source ip

To: spied@xxxxxxxxx
Subject: Re: Fw: [Bugme-new] [Bug 4180] New: masquarade and source ip
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Feb 2005 21:34:37 +1100
Cc: kaber@xxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <42088259.000022.13502@xxxxxxxxxxxxxxxxx>
Organization: Core
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.27-hx-1-686-smp (i686))
spied <spied@xxxxxxxxx> wrote:
>>The masquerading code got simplified and uses inet_select_addr() instead
>>of querying routing for the source address now.
> 
> why?

Because the previous approach of looking up the route again was
prone to failure with multi-path routing.  More importantly it
doesn't always return the correct route (that is the route the
packet received before it entered POSTROUTING).
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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