kernel-netlink: Also use interface returned by get_nexthop() for IPsec policies

This commit is contained in:
Tobias Brunner
2016-06-10 13:57:27 +02:00
parent c158331bfc
commit d1f8628420
@@ -2320,7 +2320,8 @@ static status_t add_policy_internal(private_kernel_netlink_ipsec_t *this,
if (!ipsec->src->is_anyaddr(ipsec->src)) if (!ipsec->src->is_anyaddr(ipsec->src))
{ {
route->gateway = charon->kernel->get_nexthop(charon->kernel, route->gateway = charon->kernel->get_nexthop(charon->kernel,
ipsec->src, -1, ipsec->dst, NULL); ipsec->src, -1, ipsec->dst,
&route->if_name);
} }
else else
{ /* for shunt policies */ { /* for shunt policies */