disable installing routes with add policy
authorDenis Vinogradov <denis.vinogradov@samsung.com>
Thu, 13 Aug 2020 04:26:44 +0000 (13:26 +0900)
committerYoojung Heo <yoojung.heo@samsung.com>
Tue, 25 Aug 2020 08:51:28 +0000 (17:51 +0900)
  Problem: incorrect route created, it may cause
routing failure for outgoing packets

Change-Id: I2c63314e1863bd2039bdcadb95e151e3076055c1
Signed-off-by: Denis Vinogradov <denis.vinogradov@samsung.com>
src/libcharon/plugins/kernel_netlink/kernel_netlink_ipsec.c

index 327854ff420a3d146b1e1dad7efd97c8c55c6222..983b09842b89fb2e2186b6b6ae3295d4893d7822 100755 (executable)
@@ -3639,7 +3639,11 @@ kernel_netlink_ipsec_t *kernel_netlink_ipsec_create()
                .policy_update = lib->settings->get_bool(lib->settings,
                                        "%s.plugins.kernel-netlink.policy_update", FALSE, lib->ns),
                .install_routes = lib->settings->get_bool(lib->settings,
+#ifndef VOWIFI_CFG
                                                        "%s.install_routes", TRUE, lib->ns),
+#else
+                                                       "%s.install_routes", FALSE, lib->ns),
+#endif
                .proto_port_transport = lib->settings->get_bool(lib->settings,
                                                "%s.plugins.kernel-netlink.set_proto_port_transport_sa",
                                                FALSE, lib->ns),