dhcpcd-discuss

Re: DHCP options

Roy Marples

Fri Jun 28 16:48:39 2013

Hi Irfan

On 28/06/2013 13:20, Irfan Khan wrote:
       I am developing one application in Android, where I need to
send some DHCP options to server one of them is 120 - SIP Server.
       I need help in finding how can I send this option to DHCP
server and also read the value returned by the server.
       I know Android is using DHCPCD.

       Since I am new to this. Any help would be highly appreciated.

I don't use the Android platform for development, but this should still work:

dhcpcd -V shows the variables sent to the hook scripts

uberpc$ dhcpcd -V | grep sip
120 sip_server

You can edit /etc/dhcpcd.conf like so:
option sip_server

Then look at the sample hook scripts in /libexec/dhcpcd-hooks, or /lib/dhcpcd/dhcpcd-hooks (or whereever they are installed on Android) for a starting point.
The variable set would be ${new_sip_server}

Thanks

Roy

References:
DHCP optionsIrfan Khan
Archive administrator: postmaster@marples.name