[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1299307941.2758.69.camel@edumazet-laptop>
Date: Sat, 05 Mar 2011 07:52:21 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] ipv4: Set rt->rt_iif more sanely on output routes.
Le vendredi 04 mars 2011 à 21:36 -0800, David Miller a écrit :
> rt->rt_iif is only ever inspected on input routes, for example DCCP
> uses this to populate a route lookup flow key when generating replies
> to another packet.
>
> Therefore, setting it to anything other than zero on output routes
> makes no sense.
>
> Signed-off-by: David S. Miller <davem@...emloft.net>
> ---
> net/ipv4/route.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/ipv4/route.c b/net/ipv4/route.c
> index 9794a2c..602473c 100644
> --- a/net/ipv4/route.c
> +++ b/net/ipv4/route.c
> @@ -2381,7 +2381,7 @@ static struct rtable *__mkroute_output(const struct fib_result *res,
> rth->fl.mark = oldflp->mark;
> rth->rt_dst = fl->fl4_dst;
> rth->rt_src = fl->fl4_src;
> - rth->rt_iif = oldflp->oif ? : dev_out->ifindex;
> + rth->rt_iif = 0;
> /* get references to the devices that are to be hold by the routing
> cache entry */
> rth->dst.dev = dev_out;
Reviewed-by: Eric Dumazet <eric.dumazet@...il.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists