diff options
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r-- | networking/udhcp/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 70e34614c..2e6113627 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -36,6 +36,9 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
36 | { OPTION_STRING , 0x11 }, /* DHCP_ROOT_PATH */ | 36 | { OPTION_STRING , 0x11 }, /* DHCP_ROOT_PATH */ |
37 | { OPTION_U8 , 0x17 }, /* DHCP_IP_TTL */ | 37 | { OPTION_U8 , 0x17 }, /* DHCP_IP_TTL */ |
38 | { OPTION_U16 , 0x1a }, /* DHCP_MTU */ | 38 | { OPTION_U16 , 0x1a }, /* DHCP_MTU */ |
39 | //TODO: why do we request DHCP_BROADCAST? Can't we assume that | ||
40 | //in the unlikely case it is different from typical N.N.255.255, | ||
41 | //server would let us know anyway? | ||
39 | { OPTION_IP | OPTION_REQ, 0x1c }, /* DHCP_BROADCAST */ | 42 | { OPTION_IP | OPTION_REQ, 0x1c }, /* DHCP_BROADCAST */ |
40 | { OPTION_IP_PAIR | OPTION_LIST , 0x21 }, /* DHCP_ROUTES */ | 43 | { OPTION_IP_PAIR | OPTION_LIST , 0x21 }, /* DHCP_ROUTES */ |
41 | { OPTION_STRING , 0x28 }, /* DHCP_NIS_DOMAIN */ | 44 | { OPTION_STRING , 0x28 }, /* DHCP_NIS_DOMAIN */ |
@@ -59,6 +62,7 @@ const struct dhcp_optflag dhcp_optflags[] = { | |||
59 | { OPTION_U16 , 0x84 }, /* DHCP_VLAN_ID */ | 62 | { OPTION_U16 , 0x84 }, /* DHCP_VLAN_ID */ |
60 | { OPTION_U8 , 0x85 }, /* DHCP_VLAN_PRIORITY */ | 63 | { OPTION_U8 , 0x85 }, /* DHCP_VLAN_PRIORITY */ |
61 | #endif | 64 | #endif |
65 | { OPTION_6RD , 0xd4 }, /* DHCP_6RD */ | ||
62 | { OPTION_STATIC_ROUTES , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */ | 66 | { OPTION_STATIC_ROUTES , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */ |
63 | { OPTION_STRING , 0xfc }, /* DHCP_WPAD */ | 67 | { OPTION_STRING , 0xfc }, /* DHCP_WPAD */ |
64 | 68 | ||
@@ -126,6 +130,7 @@ const char dhcp_option_strings[] ALIGN1 = | |||
126 | "vlanid" "\0" /* DHCP_VLAN_ID */ | 130 | "vlanid" "\0" /* DHCP_VLAN_ID */ |
127 | "vlanpriority" "\0"/* DHCP_VLAN_PRIORITY */ | 131 | "vlanpriority" "\0"/* DHCP_VLAN_PRIORITY */ |
128 | #endif | 132 | #endif |
133 | "ip6rd" "\0" /* DHCP_6RD */ | ||
129 | "msstaticroutes""\0"/* DHCP_MS_STATIC_ROUTES */ | 134 | "msstaticroutes""\0"/* DHCP_MS_STATIC_ROUTES */ |
130 | "wpad" "\0" /* DHCP_WPAD */ | 135 | "wpad" "\0" /* DHCP_WPAD */ |
131 | ; | 136 | ; |
@@ -154,6 +159,7 @@ const uint8_t dhcp_option_lengths[] ALIGN1 = { | |||
154 | [OPTION_S32] = 4, | 159 | [OPTION_S32] = 4, |
155 | /* Just like OPTION_STRING, we use minimum length here */ | 160 | /* Just like OPTION_STRING, we use minimum length here */ |
156 | [OPTION_STATIC_ROUTES] = 5, | 161 | [OPTION_STATIC_ROUTES] = 5, |
162 | [OPTION_6RD] = 22, /* ignored by udhcp_str2optset */ | ||
157 | }; | 163 | }; |
158 | 164 | ||
159 | 165 | ||