Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2001 08:32:29 -0700 (PDT)
From:      David Wolfskill <david@catwhisker.org>
Cc:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: pccard startup scripts
Message-ID:  <200104041532.f34FWT342989@bunrab.catwhisker.org>
In-Reply-To: <3ACB3BF8.C145CEFE@isi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Wed, 04 Apr 2001 08:21:28 -0700
>From: Lars Eggert <larse@ISI.EDU>

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104041532.f34FWT342989>