kernel-libipsec: Log error if no local address is found when installing routes
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Jul 2013 12:37:31 +0000 (14:37 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 15 Jul 2013 12:37:31 +0000 (14:37 +0200)
src/libcharon/plugins/kernel_libipsec/kernel_libipsec_ipsec.c

index 3740c76..05635b3 100644 (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;
        }