aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/clientpacket.c
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2005-08-01 14:31:13 +0000
committerPaul Fox <pgf@brightstareng.com>2005-08-01 14:31:13 +0000
commita39bba33c8649a6be42d5a511a4ac909a8998f90 (patch)
treed1b043c7ce00828f803894910d644bf7d0b78572 /networking/udhcp/clientpacket.c
parent9d6e0833bc71d602c7e6bf4692de3c8eb63cb819 (diff)
downloadbusybox-a39bba33c8649a6be42d5a511a4ac909a8998f90.tar.gz
allow suppression of default client-id. fixes bug 000037. allows
busybox to match kernel and u-boot behavior with respect to client-id.
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r--networking/udhcp/clientpacket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c
index c5e1c210b..2695b06ed 100644
--- a/networking/udhcp/clientpacket.c
+++ b/networking/udhcp/clientpacket.c
@@ -76,7 +76,8 @@ static void init_packet(struct dhcpMessage *packet, char type)
init_header(packet, type);
memcpy(packet->chaddr, client_config.arp, 6);
- add_option_string(packet->options, client_config.clientid);
+ if (client_config.clientid)
+ add_option_string(packet->options, client_config.clientid);
if (client_config.hostname) add_option_string(packet->options, client_config.hostname);
if (client_config.fqdn) add_option_string(packet->options, client_config.fqdn);
add_option_string(packet->options, (uint8_t *) &vendor_id);