kernel-libipsec: Log error if no local address is found when installing routes

This commit is contained in:
Tobias Brunner 2013-07-15 14:37:31 +02:00
parent 1ee1163214
commit f067348134
1 changed files with 5 additions and 0 deletions

View File

@ -421,6 +421,11 @@ static bool install_route(private_kernel_libipsec_ipsec_t *this,
ignore |= broadcast && src_ts->is_contained_in(src_ts, broadcast);
multicast->destroy(multicast);
DESTROY_IF(broadcast);
if (!ignore)
{
DBG1(DBG_KNL, "error installing route with policy %R === %R %N",
src_ts, dst_ts, policy_dir_names, policy->direction);
}
return ignore;
}