aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/clientpacket.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-03-19 23:42:23 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-03-19 23:42:23 +0100
commit777706cb2352c02602842f89d916a0e18ce6bd91 (patch)
tree75596b337731c87718c9015eb9eb6730183824dd /networking/udhcp/clientpacket.c
parent77a2c51e79eb54c8f5cc8903465223cbac6e8d50 (diff)
downloadbusybox-777706cb2352c02602842f89d916a0e18ce6bd91.tar.gz
udhcp: remove support for some really old and odd options
function old new delta dhcp_options 72 68 -4 dhcp_option_strings 271 253 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/clientpacket.c')
-rw-r--r--networking/udhcp/clientpacket.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/udhcp/clientpacket.c b/networking/udhcp/clientpacket.c
index 8ccdfcca2..f091d8067 100644
--- a/networking/udhcp/clientpacket.c
+++ b/networking/udhcp/clientpacket.c
@@ -62,8 +62,9 @@ static void add_param_req_option(struct dhcp_packet *packet)
int i, len = 0;
for (i = 0; (c = dhcp_options[i].code) != 0; i++) {
- if (((dhcp_options[i].flags & OPTION_REQ)
- && !client_config.no_default_options)
+ if (( (dhcp_options[i].flags & OPTION_REQ)
+ && !client_config.no_default_options
+ )
|| (client_config.opt_mask[c >> 3] & (1 << (c & 7)))
) {
packet->options[end + OPT_DATA + len] = c;