Addressing APIPA/IPv4LL issues with uamanyip

Gunther Mayer gunther.mayer at googlemail.com
Tue May 6 14:39:43 UTC 2008


Murray Long wrote:
> Hi Gunter,
> Thanks for the patch.
>
> Have done some testing myself and found that the same problem applies 
> if a user arrives at a hotspot with a static IP and no gateway.
> If, on finding he can connect, he tries to connect though DHCP he will 
> be given his origional IP without any gateway.
> And so won't be able to connect until the router is rebooted.
>
> With this in mind, would it not be better for your patch to test for 
> all IP's outside of the DHCP dynamic ip range rather than just those 
> in the IPv4LL subnet?
No, and this is the one and only case where uamanyip fails. You see, if 
you ignore all IP's outside the dynamic dhcp range you might as well not 
use uamanyip as it then wouldn't serve any purpose whatsoever.

But I doubt this is any cause for concern and is a highly unlikely case 
anyways. Somebody who arrives at a hotspot with a static ip and no 
gateway likely has never used the Internet before and doesn't use the 
Internet where he comes from because without a default gateway it's 
impossible for ANY client ANYWHERE to connect to the Internet. So 
chances are you're dealing with somebody who doesn't know how to use the 
Internet and probably wouldn't want to use it in the first place. You 
see, I doubt you'll ever encounter such a case.

Gunther



More information about the Chilli mailing list