aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 660b943ce..fc7b6216d 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -109,7 +109,7 @@ enum {
109/*** Script execution code ***/ 109/*** Script execution code ***/
110 110
111/* get a rough idea of how long an option will be (rounding up...) */ 111/* get a rough idea of how long an option will be (rounding up...) */
112static const uint8_t len_of_option_as_string[] = { 112static const uint8_t len_of_option_as_string[] ALIGN1 = {
113 [OPTION_IP ] = sizeof("255.255.255.255 "), 113 [OPTION_IP ] = sizeof("255.255.255.255 "),
114 [OPTION_IP_PAIR ] = sizeof("255.255.255.255 ") * 2, 114 [OPTION_IP_PAIR ] = sizeof("255.255.255.255 ") * 2,
115 [OPTION_STATIC_ROUTES ] = sizeof("255.255.255.255/32 255.255.255.255 "), 115 [OPTION_STATIC_ROUTES ] = sizeof("255.255.255.255/32 255.255.255.255 "),
@@ -1268,6 +1268,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1268 int retval; 1268 int retval;
1269 fd_set rfds; 1269 fd_set rfds;
1270 1270
1271 setup_common_bufsiz();
1272
1271 /* Default options */ 1273 /* Default options */
1272 IF_FEATURE_UDHCP_PORT(SERVER_PORT = 67;) 1274 IF_FEATURE_UDHCP_PORT(SERVER_PORT = 67;)
1273 IF_FEATURE_UDHCP_PORT(CLIENT_PORT = 68;) 1275 IF_FEATURE_UDHCP_PORT(CLIENT_PORT = 68;)