Hi David, On Tue, Feb 15, 2011 at 04:34:58PM +0000, David Woodhouse wrote: > On Tue, 2011-02-15 at 16:54 +0200, Jukka Rissanen wrote: > > This is described in RFC 3041 and RFC 4941 > > Your code isn't described there. > > > static void free_ipdevice(gpointer data) > > { > > struct connman_ipdevice *ipdevice = data; > > @@ -377,6 +439,7 @@ static void free_ipdevice(gpointer data) > > g_free(ipdevice->address); > > > > set_ipv6_state(ipdevice->ifname, ipdevice->ipv6_enabled); > > + set_ipv6_privacy(ipdevice->ifname, ipdevice->ipv6_privacy); > > > > g_free(ipdevice->ifname); > > g_free(ipdevice); > > @@ -474,6 +537,7 @@ void __connman_ipconfig_newlink(int index, unsigned > > short type, > > ipdevice->type = type; > > > > ipdevice->ipv6_enabled = get_ipv6_state(ipdevice->ifname); > > + ipdevice->ipv6_privacy = get_ipv6_privacy(ipdevice->ifname); > > > > ipdevice->address = g_strdup(address); > > > > Hm, so we store the previous state of the device in > ipdevice->ipv6_privacy and restore it to its original state on shutdown? Right.
> > @@ -1610,6 +1674,8 @@ static void enable_ipv6(struct connman_ipconfig > > *ipconfig) > > if (ipdevice == NULL) > > return; > > > > + set_ipv6_privacy(ipdevice->ifname, 2); > > + > > set_ipv6_state(ipdevice->ifname, TRUE); > > } > > ... but while ConnMan is driving the device we *always* use this horrid > 'privacy' mode when IPv6 is enabled? > > Surely we wouldn't want that nonsense by default, we'd only want to > enable it when the user specifically tells us that they have stopped > taking their medication and they are wearing their tinfoil hat today? That, or set the use_tempaddr sysctl value to 1 instead of 2. That would mean that when the source address is not specified, we'd use the public one instead of the temporary one. Cheers, Samuel. -- Intel Open Source Technology Centre http://oss.intel.com/ _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman