Re: Forcing DHCP release/renew
Re: Forcing DHCP release/renew
- Subject: Re: Forcing DHCP release/renew
- From: "Eugene Lisitsyn" <email@hidden>
- Date: Thu, 30 Jan 2003 14:17:10 -0800
Thanks to everyone answered my question ( Roger Smith, Justin Walker, Quinn
"The Eskimo!" ) !!!
"Justin Walker" <email@hidden> wrote:
>
Sure; all you have to do is cobble up a DHCP_RELEASE packet and send it.
Well, as you write below, the driver isn't aware of high level protocols
>
And, if I didn't mention it before, a device handler is *not* the place
>
to deal with higher-level, protocol- or system-specific policy issues.
>
:-}.
On the other hand, the hardware is not just an ethernet device. This is sort
of all-in-one USB-to-Ethernet/dhcp server/broadband
router/switch/firewall/vpn box. And there are some cases when this box needs
to notify the host that assigned ip changed (even though DHCP lease didn't
expire yet). So the box tels the driver about this change, and driver has to
notify upper layers.
"Roger Smith" <email@hidden> wrote:
>
The easiest and cleanest way is to simulate a link down then link up
>
from the driver. This will trigger an automatic reaction from configd
>
to renew the lease if the interface is using DHCP.
This is something which comes to mind first. Unfortunately, this doesn't
work on some platforms (well, i do mean windows). When link goes down for a
short time and then up - host just pings DHCP server, if it's still alive -
host assumes that DHCP lease is still valid.
So, I'll test if this (simulating link down/up) works on OS X.
Quinn <email@hidden> wrote:
>
On 9, you'd use OTChangePortState with kOTPortNetworkChange to tell
>
the system that the network has changed.
The driver (which is primarily a usb device driver) uses EnetShimLib to
interface with OT. Can it call OT API directly, how can it obtain PortRef
from EnetShimLib then?
Thanks a lot.
- Eugene
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.