]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Elide use of rt->rt_dst in ip_forward()
authorDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2011 23:34:30 +0000 (19:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2011 23:34:30 +0000 (19:34 -0400)
commit021fa585626e6b85d31bdca306f98884957af0ba
tree24e1b96d286eda163cf98cf4d5eb5a1d24b34737
parente2674bdf69253600d7705dcc1b4628c86c680799
ipv4: Elide use of rt->rt_dst in ip_forward()

No matter what kind of header mangling occurs due to IP options
processing, rt->rt_dst will always equal iph->daddr in the packet.

So we can safely use iph->daddr instead of rt->rt_dst here.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_forward.c