udhcpc: new -x hostname:xxx option

Denys Vlasenko vda.linux at googlemail.com
Tue Jul 24 17:10:15 UTC 2012


On Sun, Jul 15, 2012 at 9:57 PM, Maris, Rob <maris.rob at ingenieur.de> wrote:
> Due to a busybox update I have changed my invocation of udhcpc for using -x
> hostname:<hostname> instead of -H <hostname>.
> However, <hostname> is not recognized.

Why do you think so?

> ps shows up: {busybox} udhcpc -x hostname -iwlan0
> (the part with :<hostname> is missing)

Because udhcp_str2optset() function uses strtok()
to parse, and that function replaces delimiters with NULs.
This messes up ps display.

Does it actually work? That is, does your client send the hostname
to the server?

-- 
vda


More information about the busybox mailing list