summaryrefslogtreecommitdiff
path: root/networking/udhcp/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r--networking/udhcp/options.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index a3edd0b..32deeab 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -13,7 +13,7 @@
/* supported options are easily added here */
-struct dhcp_option options[] = {
+struct dhcp_option dhcp_options[] = {
/* name[10] flags code */
{"subnet", OPTION_IP | OPTION_REQ, 0x01},
{"timezone", OPTION_S32, 0x02},
@@ -158,9 +158,9 @@ int add_simple_option(unsigned char *optionptr, unsigned char code, u_int32_t da
u16 = (u_int16_t *) &aligned;
u32 = &aligned;
- for (i = 0; options[i].code; i++)
- if (options[i].code == code) {
- length = option_lengths[options[i].flags & TYPE_MASK];
+ for (i = 0; dhcp_options[i].code; i++)
+ if (dhcp_options[i].code == code) {
+ length = option_lengths[dhcp_options[i].flags & TYPE_MASK];
}
if (!length) {