From: OGAWA Hirofumi Date: Thu, 7 Apr 2011 21:04:08 +0000 (-0700) Subject: ipv4: Fix "Set rt->rt_iif more sanely on output routes." X-Git-Tag: v2.6.39-rc3~6^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b86a58f9d7ce4fe2377687f378fbfb53bdc9b6c;p=pandora-kernel.git ipv4: Fix "Set rt->rt_iif more sanely on output routes." Commit 1018b5c01636c7c6bda31a719bda34fc631db29a ("Set rt->rt_iif more sanely on output routes.") breaks rt_is_{output,input}_route. This became the cause to return "IP_PKTINFO's ->ipi_ifindex == 0". To fix it, this does: 1) Add "int rt_route_iif;" to struct rtable 2) For input routes, always set rt_route_iif to same value as rt_iif 3) For output routes, always set rt_route_iif to zero. Set rt_iif as it is done currently. 4) Change rt_is_{output,input}_route() to test rt_route_iif Signed-off-by: OGAWA Hirofumi Signed-off-by: David S. Miller --- Reading git-diff-tree failed