From owner-freebsd-mobile Wed Apr 4 8:32:38 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id 0E26237B71C for ; Wed, 4 Apr 2001 08:32:36 -0700 (PDT) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f34FWT342989 for freebsd-mobile@FreeBSD.ORG; Wed, 4 Apr 2001 08:32:29 -0700 (PDT) Date: Wed, 4 Apr 2001 08:32:29 -0700 (PDT) From: David Wolfskill Message-Id: <200104041532.f34FWT342989@bunrab.catwhisker.org> Subject: Re: pccard startup scripts Cc: freebsd-mobile@FreeBSD.ORG In-Reply-To: <3ACB3BF8.C145CEFE@isi.edu> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Date: Wed, 04 Apr 2001 08:21:28 -0700 >From: Lars Eggert >The fun part is how we detect locations: the name of the subdirectories >under /etc/locations are the IP addresses of well-known hosts (routers, in >this example) at the respective location. We use the arping tool from ports >to generate ARP requests out of all interfaces for any of these addresses. >The first one to succeed gives you which location you're at. >("Disconnected" is the fallback if none succeeds.) >The benefit of our scheme (in my opinion) is that you can use the same card >at multiple locations. And you don't have to manually specify which >location you're at. Right; that's part of what I was trying to accomplish. Problem is, I don't know of a way to do the ARP or DHCP stuff unless you know how to configure the card so it will talk on the network: I am working with 802.11b (wireless Ethernet) cards, and you need to set things like the SSID; possibly the WEP encryption method & key, possibly other things... *before* you can start passing traffic. (Well, that was the case before the recent patches to allow promiscuous mode to work. Not sure if that makes things easier....) I'm cleaning up what I have & will post a pointer shortly. Cheers, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message