ipv4: Set rt->rt_iif more sanely on output routes.
authorDavid S. Miller <davem@davemloft.net>
Sat, 5 Mar 2011 05:35:25 +0000 (21:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Mar 2011 05:35:25 +0000 (21:35 -0800)
commit1018b5c01636c7c6bda31a719bda34fc631db29a
tree7e00298c11f53cd386221b566483bffd31414714
parent4157434c23f8f5126a2ffd3cc7b2c3bd928be075
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>
net/ipv4/route.c