aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMiika Komu <miika@iki.fi>2006-11-30 16:40:43 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:31:48 -0800
commit76b3f055f38954c67dab13844eb92203580038f8 (patch)
tree59655690a408aef422e65660c41a51789ea2294f /net
parent08dd1a506bbc4528db60dfdfff61423a1608ed3f (diff)
downloadkernel_samsung_aries-76b3f055f38954c67dab13844eb92203580038f8.zip
kernel_samsung_aries-76b3f055f38954c67dab13844eb92203580038f8.tar.gz
kernel_samsung_aries-76b3f055f38954c67dab13844eb92203580038f8.tar.bz2
[IPSEC]: Add encapsulation family.
Signed-off-by: Miika Komu <miika@iki.fi> Signed-off-by: Diego Beltrami <Diego.Beltrami@hiit.fi> Signed-off-by: Kazunori Miyazawa <miyazawa@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/xfrm/xfrm_policy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index e5ea134..64d3938 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1211,6 +1211,7 @@ xfrm_tmpl_resolve_one(struct xfrm_policy *policy, struct flowi *fl,
if (tmpl->mode == XFRM_MODE_TUNNEL) {
remote = &tmpl->id.daddr;
local = &tmpl->saddr;
+ family = tmpl->encap_family;
if (xfrm_addr_any(local, family)) {
error = xfrm_get_saddr(&tmp, remote, family);
if (error)