All, Sorry if this is a little rough, this is my first submission for busybox.
On some networks (in my case for a cable modem) the dhcp server requires dhcp option 60 and option 43. dhcp option 60 is already supported with the -V command line option in udhcpc. It looks to me like option 43 is not supported. I have implemented a prototype for option 43. dhcp option 43 is known as the vendor specific option. I have chosen the command line option -x (as -v was already taken). I have made -x an optional argument with an optional value. By default when -x is used, udhcpc will read the file /etc/udhcpc.vendor_specific and parse the suboptions within to create option 43. One may also optionally specify a path and filename after -x. In my version of busybox (older) getopts32 does not allow a space after the -x when the value is optional. So one could specific a different path for the file as so: udhcpc -x/tmp/udhcpc.vendor_specific Dhcp option 43 is a concatenation of substrings. For my purposes I needed to implement it for (OpenCable) OC-SP-HOST2.1-CFR-I10-091211 which requires suboptions 2,3,4,5,6,7,8,9,10 and 54. http://www.cablelabs.com/specifications/OC-SP-HOST2.1-CFR-I10-091211.pdf So that is what is currently supported, but I tried to make the implementation generic and it can be expanded fairly easily. The udhcpc.vendor_specific config file is KEY value string pairs separated by whitespace. Example: SUBOPTION2 ESTB SUBOPTION3 ECM:ESTB Please review my attached patch file and example udhcpc.vendor_specific config file to see if this meets coding standards and is acceptable for inclusion into a future release of busybox. I am open to suggestions for improvements, but it does work on a major cable network that requires option 43. Also, let me know the process steps for getting this feature added into busybox. Thanks Steven Krebs
busybox_udhcpc_vendor.patch
Description: busybox_udhcpc_vendor.patch
udhcpc.vendor_specific
Description: udhcpc.vendor_specific
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
