summaryrefslogtreecommitdiff
path: root/src/ipconfig.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-02-23 12:41:21 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-02-23 18:37:23 +0100
commitb1b16f01abccaf2ab99adb5071d17de97e11c764 (patch)
tree9cec92c47a0a33bb8818388b75f7d6bef1403056 /src/ipconfig.c
parent0198bed1ceed7a84e10a4bd8cd428ac729a3ac85 (diff)
downloadconnman-b1b16f01abccaf2ab99adb5071d17de97e11c764.tar.gz
connman-b1b16f01abccaf2ab99adb5071d17de97e11c764.tar.bz2
connman-b1b16f01abccaf2ab99adb5071d17de97e11c764.zip
ipconfig: Save IPv6 privacy setting
Diffstat (limited to 'src/ipconfig.c')
-rw-r--r--src/ipconfig.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c
index 7fc887b7..8b771042 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -2042,6 +2042,14 @@ int __connman_ipconfig_save(struct connman_ipconfig *ipconfig,
g_key_file_set_string(keyfile, identifier, key, method);
g_free(key);
+ if (ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV6) {
+ const char *privacy;
+ privacy = privacy2string(ipconfig->ipv6_privacy_config);
+ key = g_strdup_printf("%sprivacy", prefix);
+ g_key_file_set_string(keyfile, identifier, key, privacy);
+ g_free(key);
+ }
+
switch (ipconfig->method) {
case CONNMAN_IPCONFIG_METHOD_FIXED:
case CONNMAN_IPCONFIG_METHOD_MANUAL:
@@ -2082,14 +2090,6 @@ int __connman_ipconfig_save(struct connman_ipconfig *ipconfig,
key, ipconfig->address->gateway);
g_free(key);
- if (ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV6) {
- const char *privacy;
- privacy = privacy2string(ipconfig->ipv6_privacy_config);
- key = g_strdup_printf("%sprivacy", prefix);
- g_key_file_set_string(keyfile, identifier, key, privacy);
- g_free(key);
- }
-
return 0;
}