[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 03181) Fix for Tuntap and Privacy extensions
- To: usagi-users@xxxxxxxxxxxxxx
- Subject: (usagi-users 03181) Fix for Tuntap and Privacy extensions
- From: RÃmi Denis-Courmont <rdenis-usagi1@xxxxxxxxxxxxxxxx>
- Date: Wed, 29 Dec 2004 11:17:28 +0100
- Organization: VIA Centrale RÃseaux
- Reply-to: usagi-users@xxxxxxxxxxxxxx
- Resent-date: Wed, 29 Dec 2004 21:15:47 +0900
- Resent-from: sekiya@xxxxxxxxxxxxxx
- Resent-message-id: <200412292115.FMLAAB15899.usagi-users@linux-ipv6.org>
- Resent-to: usagi-users@xxxxxxxxxxxxxx (moderated)
- User-agent: KMail/1.7.1
Hello,
Userland tunneling devices allocated through the TUNTAP driver
(drivers/net/tun.c) have a type of ARPHRD_NONE, and have no layer 2.
The kernel complains at regular interval when Privacy extension are
enabled. These devices have no layer 2 address:
Dec 29 11:02:04 auguste kernel: __ipv6_regen_rndid(idev=cb3e0c00):
cannot get EUI64 identifier; use random bytes.
Privacy extensions should probably be disabled on that sort of device.
If userland wants a more usual Ethernet-like interface with usual
autoconfiguration, it will use a TAP device with an emulated layer 2
and a random MAC address rather than a TUN.
--
RÃmi Denis-Courmont
http://www.simphalempin.com/home/
--- linux/net/ipv6/addrconf.c.orig 2004-12-29 10:50:27.000000000 +0100
+++ linux/net/ipv6/addrconf.c 2004-12-29 10:50:41.000000000 +0100
@@ -396,6 +396,7 @@
ndev->regen_timer.data = (unsigned long) ndev;
if ((dev->flags&IFF_LOOPBACK) ||
dev->type == ARPHRD_TUNNEL ||
+ dev->type == ARPHRD_NONE ||
dev->type == ARPHRD_SIT) {
printk(KERN_INFO
"Disabled Privacy Extensions on device %p(%s)\n",