From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.vyatta.com (mail.vyatta.com [76.74.103.46]) by huchra.bufferbloat.net (Postfix) with ESMTP id 40CED20016F for ; Thu, 23 Jun 2011 16:01:09 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.vyatta.com (Postfix) with ESMTP id 047CD14100C0; Thu, 23 Jun 2011 16:28:53 -0700 (PDT) X-Virus-Scanned: amavisd-new at tahiti.vyatta.com Received: from mail.vyatta.com ([127.0.0.1]) by localhost (mail.vyatta.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lDvj0fUByGQ4; Thu, 23 Jun 2011 16:28:52 -0700 (PDT) Received: from nehalam.ftrdhcpuser.net (static-50-53-80-93.bvtn.or.frontiernet.net [50.53.80.93]) by mail.vyatta.com (Postfix) with ESMTPSA id 1EF101829555; Thu, 23 Jun 2011 16:28:52 -0700 (PDT) Date: Thu, 23 Jun 2011 16:28:49 -0700 From: Stephen Hemminger To: Juliusz Chroboczek Subject: Re: pure routing.... generating a sane mac addr on the wndr3700 in cerowrt? Message-ID: <20110623162849.290c552b@nehalam.ftrdhcpuser.net> In-Reply-To: <7iei2kupd4.fsf@lanthane.pps.jussieu.fr> References: <7iei2kupd4.fsf@lanthane.pps.jussieu.fr> Organization: Vyatta X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: openwrt-devel@lists.openwrt.org, bloat-devel X-BeenThere: bloat-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Developers working on AQM, device drivers, and networking stacks" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 23:01:09 -0000 On Fri, 24 Jun 2011 00:58:31 +0200 Juliusz Chroboczek wrote: > > I figure it should come from the second wireless interface, get the > > local bit defined, and go to the top of the allowable range that the > > wireless interface pulls from to generate it's SSIDs > > Nah. Just pull 6 bytes from /dev/random, set the local bit, and unset > the group bit. There is nice random_ether_addr in kernel to meet your needs.