summaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-05 06:35:25 +0100
committerDavid S. Miller <davem@davemloft.net>2011-03-05 06:35:25 +0100
commit1018b5c01636c7c6bda31a719bda34fc631db29a (patch)
tree7e00298c11f53cd386221b566483bffd31414714 /net/ipv4/route.c
parentipv4: Use passed-in protocol in ip_route_newports(). (diff)
downloadlinux-1018b5c01636c7c6bda31a719bda34fc631db29a.tar.xz
linux-1018b5c01636c7c6bda31a719bda34fc631db29a.zip
ipv4: Set rt->rt_iif more sanely on output routes.
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@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv4/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 9794a2c60238..602473c92019 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;