Bug 5402

Summary: udhcpc does not request custom options specified with -O
Product: Busybox Reporter: Tobias Jähnel <tjaehnel>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: Patch to fix the 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