diff options
author | Denys Vlasenko | 2010-03-20 18:06:23 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-03-20 18:06:23 +0100 |
commit | 87fa216e1e388c537cda2cff126eea816a4135ac (patch) | |
tree | bfbf5781bd9b33525029c162d59902ac438ea2a4 /networking/udhcp/clientpacket.c | |
parent | 0f62c4d065bc7fa9d3de52a8482bf48ecfd18ecf (diff) | |
download | busybox-87fa216e1e388c537cda2cff126eea816a4135ac.zip busybox-87fa216e1e388c537cda2cff126eea816a4135ac.tar.gz |
udhcpc: make it possible to disable vendor id; improve help text
function old new delta
init_packet 135 139 +4
packed_usage 26789 26786 -3
alloc_dhcp_option 67 63 -4
udhcpc_main 2467 2447 -20
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 4/-27) Total: -23 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r-- | networking/udhcp/clientpacket.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c index f091d80..a255d6e 100644 --- a/networking/udhcp/clientpacket.c +++ b/networking/udhcp/clientpacket.c @@ -47,8 +47,12 @@ static void init_packet(struct dhcp_packet *packet, char type) add_option_string(packet->options, client_config.hostname); if (client_config.fqdn) add_option_string(packet->options, client_config.fqdn); - if ((type != DHCPDECLINE) && (type != DHCPRELEASE)) + if (type != DHCPDECLINE + && type != DHCPRELEASE + && client_config.vendorclass + ) { add_option_string(packet->options, client_config.vendorclass); + } } |