setting the IP family enables mixed tunnels

This commit is contained in:
Heiko Hund 2009-10-16 14:50:12 +02:00 committed by Andreas Steffen
parent 1eab115a8b
commit 158e9386d2
1 changed files with 1 additions and 1 deletions

View File

@ -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;