aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-07-15 14:37:31 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-15 14:37:31 +0200
commitf067348134109b1896c39724fc8cd8cba0fe60f8 (patch)
tree841dceba1349fabfd711ace46d0bbda9db2eb4c9
parent1ee116321401de604b20a9a6eba0138c0b9dc9ab (diff)
downloadstrongswan-f067348134109b1896c39724fc8cd8cba0fe60f8.tar.bz2
strongswan-f067348134109b1896c39724fc8cd8cba0fe60f8.tar.xz
kernel-libipsec: Log error if no local address is found when installing routes
-rw-r--r--src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.c b/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.c
index 3740c7643..05635b388 100644
--- a/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.c
+++ b/src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.c
@@ -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;
}