diff options
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r-- | networking/udhcp/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c index 1443451..eebcaaa 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) for (dh=dhcp_options; dh->code; dh++) { if (dh->code == code) { uint8_t option[6], len; - + option[OPT_CODE] = code; len = option_lengths[dh->flags & TYPE_MASK]; option[OPT_LEN] = len; - if (__BYTE_ORDER == __BIG_ENDIAN) + if (__BYTE_ORDER == __BIG_ENDIAN) data <<= 8 * (4 - len); /* This memcpy is for broken processors which can't * handle a simple unaligned 32-bit assignment */ |