From 0de9f5dd1ffb1af04f821f6f0bbd8ae1d393bda3 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Tue, 5 Mar 2013 16:06:16 +0200 Subject: vpn: Remember the immutable flag from vpnd --- plugins/vpn.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') 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); -- cgit v1.2.3