[XFRM]: Fix wildcard as tunnel source
commita1e59abf824969554b90facd44a4ab16e265afa4
authorPatrick McHardy <kaber@trash.net>
Tue, 19 Sep 2006 19:57:34 +0000 (19 12:57 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:19:06 +0000 (22 15:19 -0700)
treeb981536bbf7dde2c55e9a5223a5e31bea2c356a2
parent1ef9696c909060ccdae3ade245ca88692b49285b
[XFRM]: Fix wildcard as tunnel source

Hashing SAs by source address breaks templates with wildcards as tunnel
source since the source address used for hashing/lookup is still 0/0.
Move source address lookup to xfrm_tmpl_resolve_one() so we can use the
real address in the lookup.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv4/xfrm4_policy.c
net/ipv4/xfrm4_state.c
net/ipv6/xfrm6_policy.c
net/ipv6/xfrm6_state.c
net/xfrm/xfrm_policy.c