diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-27 00:05:10 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-27 00:05:10 +0100 |
commit | 0e469f4d52fd980dc316b060418105c70d2f1c29 (patch) | |
tree | 667ac0d0662baf5c40104532f7c9b9f0fd8e919b /plugins/openconnect.c | |
parent | 88d5dce8899a334c8861957ab3b0b59bc99d9709 (diff) | |
download | connman-0e469f4d52fd980dc316b060418105c70d2f1c29.tar.gz connman-0e469f4d52fd980dc316b060418105c70d2f1c29.tar.bz2 connman-0e469f4d52fd980dc316b060418105c70d2f1c29.zip |
provider: Factorize VPN routing environment variables parsing
Diffstat (limited to 'plugins/openconnect.c')
-rw-r--r-- | plugins/openconnect.c | 6 |
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); } |