[PATCH] IPv6 configurable default value for the privacy extension flag

STALE5743d

3 messages, 3 authors, 2011-02-01 · open the first message on its own page

[PATCH] IPv6 configurable default value for the privacy extension flag

From: Julien Aubé <hidden>
Date: 2011-01-31 15:52:18

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

The following patch is a proposal only.

The goal is to "preset" the default value of the flag use_tempaddr for the all/ and conf/ configuration space. 

The reason why I did this patch is because frequently, I have a race between the interface coming up and the flag:
Usually, just setting the flag to 2 in /etc/sysctl.conf is not enough : At this moment of the boot, even if the interface has no
IPv4 yet, it may have already an IPv6, got by RA.

But if at this time the flag is 0, then the interface will keep the address derived from the Mac Address. Forever.
The only solution is to bring down the interface and bring it up again, manually. 

That's why I created this patch.
I'm not sure if this is the good implementation to do, or even if it is the right way to scratch my own itch, but it 
does work nevertheless.
I know the Privacy Extension is somewhat controversial, but anyway, I do prefer to have it on, for myself.

I'm willing to to listen to any comments and modify my patch accordingly. 

Thanks,

Julien Aubé - j.aube@laposte.net

- -- 
People in the embedded space don't do prototypes. They hack something until it works, then it's done.
- --- 
le reseau par terre, c'est d'la faute a renater
le nez dans le ruisseau, c'est la faute a cisco
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk1G2hkACgkQHiz1mD2sU8irLACeM9ZBiQ+WSj2dVImyorRuwEVY
9UwAoJVp3w3Vp+9HRe6BRW59y/KrnDsr
=zlk3
-----END PGP SIGNATURE-----

Re: [PATCH] IPv6 configurable default value for the privacy extension flag

From: YOSHIFUJI Hideaki <hidden>
Date: 2011-02-01 04:14:57

Hello.

(2011/02/01 0:49), Julien Aubé wrote:
quoted hunk
+	} else {
+		printk(KERN_WARNING "IPv6 Privacy Extension "
+	"is disabled by default (invalid value %d)\n", ipv6_default_privacy);
+	}
I think WARNING is too high.

--yoshfuji

Re: [PATCH] IPv6 configurable default value for the privacy extension flag

From: Julien Aube <hidden>
Date: 2011-02-01 13:35:03

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le Tue, 01 Feb 2011 13:04:37 +0900,
YOSHIFUJI Hideaki [off-list ref] a écrit :
Hello.

(2011/02/01 0:49), Julien Aube wrote:
quoted
+	} else {
+		printk(KERN_WARNING "IPv6 Privacy Extension "
+	"is disabled by default (invalid value %d)\n", ipv6_default_privacy);
+	}
I think WARNING is too high.
I did put KERN_WARNING because this code is used when someone explicitly set 
an invalid value, e.g.
 ipv6.privacy_default=-1

But you're right, I'll set KERN_NOTICE instead.

What do you think of the idea by itself anyhow ?

Thanks for the feedback.

Julien
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk1IAyYACgkQHiz1mD2sU8g39QCg6FY8LFCBwyX310cAZYdyVHJA
a4wAoOSDXBZGgayReuZ5wvzE7iZRiHZr
=7i5B
-----END PGP SIGNATURE-----
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help