[Bug 7130] udhcpc - it's no possible to set required DHCP options

bugzilla at busybox.net bugzilla at busybox.net
Mon Jun 2 00:16:51 UTC 2014


https://bugs.busybox.net/show_bug.cgi?id=7130

Denys Vlasenko <vda.linux at googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> 2014-06-02 00:16:50 UTC ---
> There isn't any command line option that allow set DHCP options required from
> DHCP server. There is only '-O ' switch - request DHCP option.
> 
> From isc-dhcp-client manual:

(Note: udhcpc is not a clone of isc-dhcp-client, thus its manual is not
particularly relevant...)

> "The 'require' statement lists options that must be sent in order for an offer
> to be accepted. Offers that do not contain all the listed options will be
> ignored."

DHCP protocol per se doesn't have a notion of "require server to sent such and
such options". Maximum client can do is to ask nicely for an option to be sent.
Server may ignore such request.

If you want to exit if server did not sent an option you absolutely require,
you can do so by analyzing environment variables in the dhcpc script.

Please take a look at files in examples/udhcp/

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list