summaryrefslogtreecommitdiff
path: root/networking/udhcp/clientpacket.c
diff options
context:
space:
mode:
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)
62 int i, len = 0; 62 int i, len = 0;
63 63
64 for (i = 0; (c = dhcp_options[i].code) != 0; i++) { 64 for (i = 0; (c = dhcp_options[i].code) != 0; i++) {
65 if (((dhcp_options[i].flags & OPTION_REQ) 65 if (( (dhcp_options[i].flags & OPTION_REQ)
66 && !client_config.no_default_options) 66 && !client_config.no_default_options
67 )
67 || (client_config.opt_mask[c >> 3] & (1 << (c & 7))) 68 || (client_config.opt_mask[c >> 3] & (1 << (c & 7)))
68 ) { 69 ) {
69 packet->options[end + OPT_DATA + len] = c; 70 packet->options[end + OPT_DATA + len] = c;