[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-devel] Using DHCP & AutoIP as connections change
From: |
Bill Auerbach |
Subject: |
RE: [lwip-devel] Using DHCP & AutoIP as connections change |
Date: |
Wed, 2 Jun 2010 10:15:24 -0400 |
Thanks Sprow. dhcp_rebind is static. However dhcp_network_changed works
well provided the patch I uploaded is used. I can now change cables from a
link with DHCP to a link without and it goes back and forth from AutoIP to
DHCP addresses and in both cases the address it had for each remains the
same.
When I lose the link I now do nothing. When I get the link if I had a
static address I use dhcp_inform and with DHCP/AutoIP enabled I use
dhcp_network_changed.
Bill
>-----Original Message-----
>From: address@hidden
>[mailto:address@hidden On
>Behalf Of Sprow
>Sent: Tuesday, June 01, 2010 3:43 PM
>To: 'lwip-devel'
>Subject: Re: [lwip-devel] Using DHCP & AutoIP as connections change
>
>Isn't it more appropriate to do a dhcp_rebind in this case?
>If the netif is still alive, but the link is down (unplugged cable), the
>lease is still valid from the DHCP server's point of view since it
>doesn't
>know that the link is down - the rebind is just a courtesy to check that
>(for example) the DHCP server hasn't been rebooted in between.
>
>On the DHCP server at work you almost always get the same IP address
>back,
>even if the cable is unplugged for days, which suggests the DHCP server
>remembers the MAC address or maybe we just don't end up reusing
>addresses
>much (netmask FFFF0000, only about 180 DHCP clients),
>Sprow.