[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>
Showing
- include/net/xfrm.h 13 additions, 0 deletionsinclude/net/xfrm.h
- net/ipv4/xfrm4_policy.c 20 additions, 0 deletionsnet/ipv4/xfrm4_policy.c
- net/ipv4/xfrm4_state.c 0 additions, 15 deletionsnet/ipv4/xfrm4_state.c
- net/ipv6/xfrm6_policy.c 21 additions, 0 deletionsnet/ipv6/xfrm6_policy.c
- net/ipv6/xfrm6_state.c 0 additions, 16 deletionsnet/ipv6/xfrm6_state.c
- net/xfrm/xfrm_policy.c 21 additions, 0 deletionsnet/xfrm/xfrm_policy.c
Loading
Please register or sign in to comment