aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r--networking/udhcp/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index 144345134..eebcaaa58 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -154,11 +154,11 @@ int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data)
154 for (dh=dhcp_options; dh->code; dh++) { 154 for (dh=dhcp_options; dh->code; dh++) {
155 if (dh->code == code) { 155 if (dh->code == code) {
156 uint8_t option[6], len; 156 uint8_t option[6], len;
157 157
158 option[OPT_CODE] = code; 158 option[OPT_CODE] = code;
159 len = option_lengths[dh->flags & TYPE_MASK]; 159 len = option_lengths[dh->flags & TYPE_MASK];
160 option[OPT_LEN] = len; 160 option[OPT_LEN] = len;
161 if (__BYTE_ORDER == __BIG_ENDIAN) 161 if (__BYTE_ORDER == __BIG_ENDIAN)
162 data <<= 8 * (4 - len); 162 data <<= 8 * (4 - len);
163 /* This memcpy is for broken processors which can't 163 /* This memcpy is for broken processors which can't
164 * handle a simple unaligned 32-bit assignment */ 164 * handle a simple unaligned 32-bit assignment */