ipv6: Make icmp route lookup code a bit clearer.
authorDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2011 06:06:22 +0000 (22:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2011 06:07:37 +0000 (22:07 -0800)
commitb42835dbe83d725198c7ab0bbe726d6dfd92a634
tree8728dccb3fa9bb54dba53a0a00c6e2818b843a91
parentf6d460cf0ed16d35aec48f823685e7a0e0283d84
ipv6: Make icmp route lookup code a bit clearer.

The route lookup code in icmpv6_send() is slightly tricky as a result of
having to handle all of the requirements of RFC 4301 host relookups.

Pull the route resolution into a seperate function, so that the error
handling and route reference counting is hopefully easier to see and
contained wholly within this new routine.

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