Re: DHCP Inform
Re: DHCP Inform
- Subject: Re: DHCP Inform
- From: "Peter Sichel" <email@hidden>
- Date: Fri, 26 Jan 2007 19:19:09 -0500
On 1/26/07, Darren Mason wrote:
>Sorry if I'm asking an obvious question, but I'm very new to Mac
>programming and am finding the documentation very cumbersome. I just
>want to send a DHCPINFORM for WPAD, but I've been having a lot of
>trouble trying to figure out how to do that without trying to change the
>configuration.
I've written a tool that sends DHCPINFORM. It's just a normal UDP
datagram, but if you want to send it from the normal DHCP client port,
you'll need privileges to use this port, and even that could fail if the
local DHCP client has already bound to that port. In this case you can
use something like bpftransmit in the Darwin bootp project and listen
for the response using libpcap. This is how I do it.
If the host is already configured via DHCP, you can use the System
Configuration Framework to look at the parameters the host received from
the DHCP server.
I don't know of any published API to tell the local DHCP client to send
a DHCPINFORM outside the context of updating the current host configuration.
Kind Regards,
- Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >DHCP Inform (From: Darren Mason <email@hidden>) |