]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit9f6abb5f175bdb9ecfd390000a631bf0abf2fedb
tree696cd97e0cdc67c9a0dcbf0ad1e2fd0626e221ee
parent0a5ebb8000c5362be368df9d197943deb06b6916
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