Hi all, One gentoo notebook running wicd, three general classes of network logon used frequently (dhpc always):
work - mostly wired, occasionally wireless. There's a plethora of APs to pick from, some official, some rogue. And not all end up being served by the same dhcp server, or even be in sync with each other. home - Easy one. Usually wireless, sometimes wired. I control the router. everything else - friend's houses, other companies, wifi hotspots. Thanks to our IT division I get lots of practice in finding interesting ways into the corporate network. Depending on how I'm connected I start up all manner of tunnels, socks proxies and various other bits. Doing this manually is getting tedious. So I'm looking for a reasonably reliable way of detecting what served my current IP address so the post-start script in wicd can detect this and launch all the correct things correctly. The actual address range and domain is not the way to go - too many networks dish out 10.0.0.0/8 and example.com for that to work well. I have some ideas of my own, but figured I'd ask here as well. Odds are excellent someone will have much better ideas than I. -- alan dot mckinnon at gmail dot com