From owner-freebsd-mobile@FreeBSD.ORG Thu Jan 1 08:22:09 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C4D516A4CE for ; Thu, 1 Jan 2004 08:22:09 -0800 (PST) Received: from gw.pelleg.org (gw.pelleg.org [205.201.13.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id B53E443D60 for ; Thu, 1 Jan 2004 08:22:07 -0800 (PST) (envelope-from daniel@pelleg.org) Received: from lank.here (lank.wburn [192.168.3.41]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "gw.pelleg.org", Issuer "Dan Pelleg" (verified OK)) by gw.pelleg.org (Postfix) with ESMTP id AE70F5A53; Thu, 1 Jan 2004 11:22:05 -0500 (EST) Received: by lank.here (Postfix, from userid 7675) id 1518A661; Thu, 1 Jan 2004 11:22:02 -0500 (EST) To: Dirk-Willem van Gulik References: <200312141022.44320.racerx@makeworld.com> <20040101033430.H91700@skutsje.san.webweaving.org> From: Dan Pelleg Date: Thu, 01 Jan 2004 11:22:01 -0500 In-Reply-To: <20040101033430.H91700@skutsje.san.webweaving.org> (Dirk-Willem van Gulik's message of "Thu, 1 Jan 2004 03:35:19 -0800 (PST)") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.1 (Cuyahoga Valley, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: Randy Bush cc: freebsd-mobile@freebsd.org Subject: Re: WEP and DHCP X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2004 16:22:09 -0000 Dirk-Willem van Gulik writes: > On Sun, 14 Dec 2003, Randy Bush wrote: > >> interface "wi0" { >> send dhcp-client-identifier "foo.bar.baz"; >> media "nwid 'my-home' nwkey myWEPkeysilly"; # home >> media "nwid 'tmobile' -nwkey"; # staryuchhs >> media "nwid 'nanog42' -nwkey"; # nanog >> media "nwid '' -nwkey"; # open >> } >> >> so it cycles through them trying each in turn. > .. >> otoh, if you meant acquiring the wep key via dhcp, how did you > > actually -is- there a clever way to not let the keys cycle and be flashed > each in turn as above; but to pick the right one absed on some dhcp value > (say network name, etc) ? > You can choose on the MAC address of the AP. In fact I am in possession of a script to do exactly that (can also decide based on SSID). I don't believe I'm supposed to distribute it further, but email me privately if you want it and I'll see if the author is ok with that. -- Dan Pelleg