summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-03-05 16:06:16 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-08 13:09:25 +0200
commit0de9f5dd1ffb1af04f821f6f0bbd8ae1d393bda3 (patch)
tree8f5b5bb4c11268991f4bbacf054038783ae42a78 /plugins
parent94fa2abad00ce77e7a07b89f074118b0a3a08733 (diff)
downloadconnman-0de9f5dd1ffb1af04f821f6f0bbd8ae1d393bda3.tar.gz
connman-0de9f5dd1ffb1af04f821f6f0bbd8ae1d393bda3.tar.bz2
connman-0de9f5dd1ffb1af04f821f6f0bbd8ae1d393bda3.zip
vpn: Remember the immutable flag from vpnd
Diffstat (limited to 'plugins')
-rw-r--r--plugins/vpn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/vpn.c b/plugins/vpn.c
index d27346a3..cffc5596 100644
--- a/plugins/vpn.c
+++ b/plugins/vpn.c
@@ -81,6 +81,7 @@ struct connection_data {
char **host_ip;
char *domain;
char **nameservers;
+ gboolean immutable;
GHashTable *server_routes;
GHashTable *user_routes;
@@ -599,6 +600,8 @@ static void add_connection(const char *path, DBusMessageIter *properties,
} else if (g_str_equal(key, "Type") == TRUE) {
dbus_message_iter_get_basic(&value, &str);
data->type = g_strdup(str);
+ } else if (g_str_equal(key, "Immutable") == TRUE) {
+ dbus_message_iter_get_basic(&value, &data->immutable);
} else if (g_str_equal(key, "Host") == TRUE) {
dbus_message_iter_get_basic(&value, &str);
data->host = g_strdup(str);