Mark Ellis wrote: > On Tue, 2008-01-22 at 18:21 +0100, Ole André Vadla Ravnås wrote: >> On Jan 21, 2008 11:14 PM, Mark Ellis <[EMAIL PROTECTED]> wrote: >> (...) >> > synce-hal currently uses ifconfig in the callout script, so this could >> > easily be replaced with dhclient. The problem is then how to pass the >> > recovered ip address to dccm so it knows which interface to listen on. >> I >> > seem to remember that there is a dbus controllable dhclient, I'll >> > investigate at some point. >> >> If I recall correctly this is what NetworkManager uses, so it might be a >> good idea to support this, and fall back to a hardcoded/user-configured >> static IP address. At least this won't add any extra dependencies on a >> modern GNOME desktop, although I'm not sure about KDE. >> > > Thats the one, dhcdbd, as far as I can tell it simply provides a dbus > interface and passes everything onto dhclient.
Although it still is a possibility to use an external dhcp client, my preference still goes to a small, internally coded dhcp client since you won't add any dependencies. The reason I think it is quite easy is that I don't want to implement it with a large feature set, we only have to send two packets and receive two packets. Currently I have the initial setup working, though the only problem that I still have is that the source-address is still set wrongly for some reason that I don't understand. I have one eth0 device (with IP 192.168.1.98) and the new eth1 device (which is rndis0, but renamed). When I create the needed UDP packets to send on eth1 with source 0.0.0.0 to 255.255.255.255, I still see with tcpdump that the source address of the package on the eth1 device is for some reason 192.168.1.98. After I have figured this tiny detail out, it should be quite straight forward to implement the DHCP client. Furthermore, if I change the code within odccm, not to use dhcp for eth1, but as a test for eth0, I do get a valid reply from my router. So the DHCP code is working as it should ;) When I have more information, I will let you guys know. Regards, Guido Diepen -- Aviation is proof that given the will, we have the capacity to achieve the impossible. --Eddie Rickenbacker ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ SynCE-Devel mailing list SynCE-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synce-devel