Get a link-local IP when wired and DHCP fails

2005-06-30 Thread Bastien Nocera
Heya, Here's a (small) patch I wrote after a discussion with Dan. The use-cases are: - Plug my laptop and desktop together, via a crossed-cable or some cheap hub, they both get a nice little IP address, and they can talk. - Create an ad-hoc non-encrypted network on my desktop, join in on my

Re: Get a link-local IP when wired and DHCP fails

2005-06-30 Thread Bastien Nocera
On Thu, 2005-06-30 at 16:19 -0400, Dan Williams wrote: On Thu, 2005-06-30 at 20:14 +0100, Bastien Nocera wrote: + } else if (ip4_config == NULL nm_device_is_wireless (dev) == FALSE nm_ap_get_encrypted (ap) == FALSE) { You probably want this to be

Re: Get a link-local IP when wired and DHCP fails

2005-06-30 Thread Robert Love
On Thu, 2005-06-30 at 20:14 +0100, Bastien Nocera wrote: Any comments? When I don't have a DHCP server, I get failure on Stage 3 (start of DHCP transaction) and never make it to Stage 4. So, this isn't working for me. Debugging ... And, attached patch fixes the typo that Dan pointed out and

Re: Get a link-local IP when wired and DHCP fails

2005-06-30 Thread Dan Williams
On Thu, 2005-06-30 at 20:14 +0100, Bastien Nocera wrote: + } else if (ip4_config == NULL nm_device_is_wireless (dev) == FALSE nm_ap_get_encrypted (ap) == FALSE) { You probably want this to be nm_device_is_wireless (dev) == TRUE right? Dan