summaryrefslogtreecommitdiff
path: root/plugins/openconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/openconnect.c')
-rw-r--r--plugins/openconnect.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/openconnect.c b/plugins/openconnect.c
index 6181046a..cc8b51b9 100644
--- a/plugins/openconnect.c
+++ b/plugins/openconnect.c
@@ -27,6 +27,8 @@
#include <errno.h>
#include <unistd.h>
+#include <glib.h>
+
#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/provider.h>
@@ -87,6 +89,10 @@ static int oc_notify(DBusMessage *msg, struct connman_provider *provider)
if (domain == NULL && !strcmp(key, "CISCO_DEF_DOMAIN"))
domain = value;
+ if (g_str_has_prefix(key, "CISCO_SPLIT_INC") == TRUE ||
+ g_str_has_prefix(key, "CISCO_IPV6_SPLIT_INC") == TRUE)
+ connman_provider_append_route(provider, key, value);
+
dbus_message_iter_next(&dict);
}