aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Hund <hhund@astaro.com>2009-10-16 14:50:12 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-10-16 14:50:12 +0200
commit158e9386d24df1bf71d864e62bda167c5892dbf9 (patch)
tree5b4be7ae1d30cebcda4775e7a44d4f1bd6098430
parent1eab115a8be214af184c7f59262faa1bd2b2370f (diff)
downloadstrongswan-158e9386d24df1bf71d864e62bda167c5892dbf9.tar.bz2
strongswan-158e9386d24df1bf71d864e62bda167c5892dbf9.tar.xz
setting the IP family enables mixed tunnels
-rw-r--r--src/pluto/kernel_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluto/kernel_netlink.c b/src/pluto/kernel_netlink.c
index a0db5e69c..f7de01d94 100644
--- a/src/pluto/kernel_netlink.c
+++ b/src/pluto/kernel_netlink.c
@@ -523,9 +523,9 @@ static bool netlink_raw_eroute(const ip_address *this_host
tmpl[i].optional =
proto_info[i].proto == IPPROTO_COMP && dir != XFRM_POLICY_OUT;
tmpl[i].aalgos = tmpl[i].ealgos = tmpl[i].calgos = ~0;
+ tmpl[i].family = that_host->u.v4.sin_family;
tmpl[i].mode =
proto_info[i].encapsulation == ENCAPSULATION_MODE_TUNNEL;
-
if (!tmpl[i].mode)
{
continue;