dhcpcd-discuss

Re: dhcpcd-dbus

Roy Marples

Fri Jun 06 15:01:45 2014

On 06/06/2014 15:53, Meran Ahmad wrote:
Hello,

Thank you very much for that quick reply.
But I would ask why you want to do this?

I am writing an network manager API in for raspberry pi. in this API,
I want to be able to set the IP manually or by dhcp. Now if the dhcpcd
is running regardless to my manual inputs once the “wpa_supplicant”
established the connection dhcpcd will on its own start dhcp request.

Oh I see.
So basically I've given you the tools to do that :)

Basically your API just wants to read the dhcp config (via getconfig and getconfigblocks), write the chosen config back to dhcpcd and then issue a reconfigure command.

I would leave the default as DHCP enabled but allow for static IP as you say. BTW, do you use DBus on the PI for anything else? I can demonstrate a C library with the same level of features as dhcpcd-dbus that talks natively via sockets.

Do you have a link to this project that I can reference? I have a pi myself, just using a XMBC front end.

Roy

Follow-Ups:
Re: dhcpcd-dbusMeran Ahmad
References:
dhcpcd-dbusMeran Ahmad
Re: dhcpcd-dbusRoy Marples
Re: dhcpcd-dbusMeran Ahmad
Archive administrator: postmaster@marples.name