]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: icmp: Eliminate remaining uses of rt->rt_src
authorDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2011 20:28:22 +0000 (13:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2011 20:32:46 +0000 (13:32 -0700)
commit1ed1b61f1966b33c868f666b68e291c0082bb4f1
tree696cd97e0cdc67c9a0dcbf0ad1e2fd0626e221ee
parent07b4079ae3279963fcb46bdc72b706cc5f36719a
ipv4: icmp: Eliminate remaining uses of rt->rt_src

On input packets, rt->rt_src always equals ip_hdr(skb)->saddr

Anything that mangles or otherwise changes the IP header must
relookup the route found at skb_rtable().  Therefore this
invariant must always hold true.

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