Bug 5402 - udhcpc does not request custom options specified with -O
Summary: udhcpc does not request custom options specified with -O
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-26 11:32 UTC by Tobias Jähnel
Modified: 2012-07-27 11:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Patch to fix the bug (1.48 KB, application/octet-stream)
2012-07-26 11:32 UTC, Tobias Jähnel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Jähnel 2012-07-26 11:32:54 UTC
Created attachment 4448 [details]
Patch to fix the bug

The udhcpc applet allows to populate the "Parameter request list" using Option -O.

Beside a list of known option, it is possible to specify a numeric option code.
However, when entering an option that is not known to udhcpc it silently ignores it and does not put it on the parameter request list.

The attached patch should fix the problem.

Tobias
Comment 1 Denys Vlasenko 2012-07-27 11:26:22 UTC
Fixed in git:

commit 293c94564ccee60c8e954bb6347fd36034cb7590
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Fri Jul 27 13:25:07 2012 +0200

    udhcpc: make -O <numeric_opt> work