netdev
[Top] [All Lists]

Re: [PATCH] Change masquerade code to use first IP address of interface.

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [PATCH] Change masquerade code to use first IP address of interface.
From: Henrik Nordstrom <hno@xxxxxxxxxxxxxxx>
Date: Wed, 20 Oct 2004 13:04:51 +0200 (CEST)
Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20041020104650.GA20868@xxxxxxxxxxxxxxxxxxx>
References: <E1CKBtq-0005FC-00@xxxxxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.61.0410201123200.25590@xxxxxxxxxxxxxxxxxxxxx> <20041020104650.GA20868@xxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Wed, 20 Oct 2004, Herbert Xu wrote:

I mean

        rt = (struct rtable *)(*pskb)->dst;
        newsrc = inet_select_addr(out, rt->rt_gateway, RT_SCOPE_UNIVERSE);

IIRC we are not allowed to access this here, but I may be wrong.. If we are allowe to access the rtable like this then this is obviously better, and should also solve most policy routing setups (and allow the others to be solved).

Regards
Henrik

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