On Mon, 2008-01-21 at 22:40 +0000, John Carr wrote: > > Ideas yes, solutions no. > > > > Odccm does everything internally, so to use dhcp you'd need to implement > > it in C or call dhclient externally. > > > > 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. > > > > Mark > > One sinister option is to take advantage of the fact that the callout > script can be written in python.. so we could use popen and friends to > call dhclient and scrape its returned output. Possibly after trying > the dbus controlled DHCP client first... When the callout script > starts hal-dccm it can use bog standard command line args to tell > hal-dccm what to do, or use dbus and hal to set the IPs on the HAL > node.. >
Certainly an option, I only used shell because I wasn't trying anything complicated at the time. My only reservation about parsing output is that it can get quite complicated to deal with different scenarios, meaning errors mostly. Mark ------------------------------------------------------------------------- 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