diff options
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 684d76b2b..7929950f5 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -49,6 +49,7 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
49 | { OPTION_U32 , 0x33 }, /* DHCP_LEASE_TIME */ | 49 | { OPTION_U32 , 0x33 }, /* DHCP_LEASE_TIME */ |
50 | { OPTION_IP , 0x36 }, /* DHCP_SERVER_ID */ | 50 | { OPTION_IP , 0x36 }, /* DHCP_SERVER_ID */ |
51 | { OPTION_STRING , 0x38 }, /* DHCP_ERR_MESSAGE */ | 51 | { OPTION_STRING , 0x38 }, /* DHCP_ERR_MESSAGE */ |
52 | { OPTION_STRING , 0x3c }, /* DHCP_VENDOR */ | ||
52 | //TODO: must be combined with 'sname' and 'file' handling: | 53 | //TODO: must be combined with 'sname' and 'file' handling: |
53 | { OPTION_STRING_HOST , 0x42 }, /* DHCP_TFTP_SERVER_NAME */ | 54 | { OPTION_STRING_HOST , 0x42 }, /* DHCP_TFTP_SERVER_NAME */ |
54 | { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */ | 55 | { OPTION_STRING , 0x43 }, /* DHCP_BOOT_FILE */ |
@@ -83,7 +84,6 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
83 | { OPTION_U8 , 0x35 }, /* DHCP_MESSAGE_TYPE */ | 84 | { OPTION_U8 , 0x35 }, /* DHCP_MESSAGE_TYPE */ |
84 | { OPTION_U16 , 0x39 }, /* DHCP_MAX_SIZE */ | 85 | { OPTION_U16 , 0x39 }, /* DHCP_MAX_SIZE */ |
85 | //looks like these opts will work just fine even without these defs: | 86 | //looks like these opts will work just fine even without these defs: |
86 | // { OPTION_STRING , 0x3c }, /* DHCP_VENDOR */ | ||
87 | // /* not really a string: */ | 87 | // /* not really a string: */ |
88 | // { OPTION_STRING , 0x3d }, /* DHCP_CLIENT_ID */ | 88 | // { OPTION_STRING , 0x3d }, /* DHCP_CLIENT_ID */ |
89 | { 0, 0 } /* zeroed terminating entry */ | 89 | { 0, 0 } /* zeroed terminating entry */ |
@@ -120,6 +120,7 @@ const char dhcp_option_strings[] ALIGN1 = | |||
120 | "lease" "\0" /* DHCP_LEASE_TIME */ | 120 | "lease" "\0" /* DHCP_LEASE_TIME */ |
121 | "serverid" "\0" /* DHCP_SERVER_ID */ | 121 | "serverid" "\0" /* DHCP_SERVER_ID */ |
122 | "message" "\0" /* DHCP_ERR_MESSAGE */ | 122 | "message" "\0" /* DHCP_ERR_MESSAGE */ |
123 | "vendor" "\0" /* DHCP_VENDOR */ | ||
123 | "tftp" "\0" /* DHCP_TFTP_SERVER_NAME*/ | 124 | "tftp" "\0" /* DHCP_TFTP_SERVER_NAME*/ |
124 | "bootfile" "\0" /* DHCP_BOOT_FILE */ | 125 | "bootfile" "\0" /* DHCP_BOOT_FILE */ |
125 | // "userclass" "\0" /* DHCP_USER_CLASS */ | 126 | // "userclass" "\0" /* DHCP_USER_CLASS */ |