Subject: Re: kern/37439: tap(4) assigning duplicate MAC addresses
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-bugs
Date: 11/27/2007 06:35:02
The following reply was made to PR kern/37439; it has been noted by GNATS.

From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@NetBSD.org
Cc: mmondor@pulsar-zone.net
Subject: Re: kern/37439: tap(4) assigning duplicate MAC addresses
Date: Tue, 27 Nov 2007 06:00:28 +0100

 --5oH/S/bF6lOfqCQb
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Nov 26, 2007 at 10:20:00PM +0000, mmondor@pulsar-zone.net wrote:
 > >Number:         37439
 > >Category:       kern
 > >Synopsis:       tap(4) assigning duplicate MAC addresses
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    kern-bug-people
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Mon Nov 26 22:20:00 +0000 2007
 > >Originator:     Matthew Mondor
 > >Release:        NetBSD 4.99.37
 > >Organization:
 > >Environment:
 >         System: NetBSD sat.xisop 4.99.37 NetBSD 4.99.37 (GENERIC_LAPTOP_M=
 M) #4: Sat Nov 24 22:19:54 EST 2007  root@sat.xisop:/usr/src/sys/arch/i386/=
 compile/GENERIC_LAPTOP_MM i386
 > Architecture: i386
 > Machine: i386
 > >Description:
 > 	When creating multiple tap(4) interfaces in a short time frame,
 > 	they are assigned the same MAC address.  This address is calculated
 > 	from the current uptime trivially, not to simply use a hardcoded
 > 	address.  However, it's not difficult to enhance the process.
 > 	A diff is included showing an example.
 
 Looking back, what I did was stupid anyway.  I have the device unit
 number which is guaranteed to be unique between tap interfaces.  I'll
 cook something up later.
 
 --=20
 Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
 "See the look on my face from staying too long in one place
 [...] every time the morning breaks I know I'm closer to falling"
 KT Tunstall, Saving My Face, Drastic Fantastic, 2007.
 
 --5oH/S/bF6lOfqCQb
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.6 (NetBSD)
 
 iQEVAwUBR0ukbNgoQloHrPnoAQLnEggAieyf1qx+mq2nFnrscoisAz/UWpJ5xftQ
 7lOK1KVEDHsfvR14muTDnX7hRml/SaSHQI40mvqxHSO0rQJbrJxEIFHZHbwGB6s9
 ms/TxeR0VksqDUBucMSOJ7yEt3j26cmTp1YtnBuaIQO+FsOCpf9nWSEXTtIRWmoo
 cl6FiWJAzt5zRE6+3ae8n5mLYvX6ugqaikeZKSyx813ITETHEVjsgyGB75nXaIio
 28nd9RIuo0pc16+mhWiAdgWuWJsGCagbVR5EVxLG8hucv245uKcv4x5Uuj3C3bzp
 KdtM6B6QXCIni4rEDk5Yi04EMSeNgQs6CLp+coI29KLOq2lFETWYIA==
 =GlIA
 -----END PGP SIGNATURE-----
 
 --5oH/S/bF6lOfqCQb--