so you need to call
setsockopt(socket, IPPROTO_IPV6, IPV6_ADDR_PREFERENCES, &value, sizeof(value)).
Where value=IPV6_PREFER_SRC_PUBLIC
On 16 May 2013 23:24, Jason Eggleston <email address hidden> wrote:
>
> I can confirm all of the security addresses by default are marked
> Global. There is no application level workaround for this.
>
> $ ifconfig eth0 | awk '/inet6/ {print $1,$2,"ipv6addr",$4}'
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Link
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1068756
>
> Title:
> IPv6 Privacy Extensions enabled on Ubuntu Server by default
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1068756/+subscriptions
From 'include/ linux/in6. h'
/* RFC5014: Source address selection */ PREFERENCES 72
#define IPV6_ADDR_
#define IPV6_PREFER_SRC_TMP 0x0001 SRC_PUBLIC 0x0002 SRC_PUBTMP_ DEFAULT 0x0100 SRC_HOME 0x0400 SRC_NONCGA 0x0800
#define IPV6_PREFER_
#define IPV6_PREFER_
#define IPV6_PREFER_SRC_COA 0x0004
#define IPV6_PREFER_
#define IPV6_PREFER_SRC_CGA 0x0008
#define IPV6_PREFER_
so you need to call PREFERENCES, &value, sizeof(value)).
setsockopt(socket, IPPROTO_IPV6, IPV6_ADDR_
Where value=IPV6_ PREFER_ SRC_PUBLIC
On 16 May 2013 23:24, Jason Eggleston <email address hidden> wrote: ipv6addr" ,$4}' /bugs.launchpad .net/bugs/ 1068756 /bugs.launchpad .net/ubuntu/ +source/ procps/ +bug/1068756/ +subscriptions
>
> I can confirm all of the security addresses by default are marked
> Global. There is no application level workaround for this.
>
> $ ifconfig eth0 | awk '/inet6/ {print $1,$2,"
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Link
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
> inet6 addr: ipv6addr Scope:Global
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> IPv6 Privacy Extensions enabled on Ubuntu Server by default
>
> To manage notifications about this bug go to:
> https:/
--
Neil Wilson