udhcp: add setup_common_bufsiz() as needed
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 21 Apr 2016 16:54:36 +0000 (18:54 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 21 Apr 2016 16:54:36 +0000 (18:54 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/d6_dhcpc.c
networking/udhcp/dhcpc.c
networking/udhcp/dhcpd.c

index 422254d62ebc17f0351413280b688a9a3a68dcb8..c77669a31d83e2f0a1cad1136f682b23afcd50a3 100644 (file)
@@ -930,6 +930,8 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
        int retval;
        fd_set rfds;
 
+       setup_common_bufsiz();
+
        /* Default options */
        IF_FEATURE_UDHCP_PORT(SERVER_PORT6 = 547;)
        IF_FEATURE_UDHCP_PORT(CLIENT_PORT6 = 546;)
index 660b943ce734a39cf92685f15e7a885e3138a83d..8f5a03f2e180bbd88829a41754caa4fb92afd0d0 100644 (file)
@@ -1268,6 +1268,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
        int retval;
        fd_set rfds;
 
+       setup_common_bufsiz();
+
        /* Default options */
        IF_FEATURE_UDHCP_PORT(SERVER_PORT = 67;)
        IF_FEATURE_UDHCP_PORT(CLIENT_PORT = 68;)
index 2671ea3e29ff9a06c2fc25494461d33388fd8a65..e93a9f1da0ddc645289d988389d579e1cce220fa 100644 (file)
@@ -310,10 +310,10 @@ int udhcpd_main(int argc UNUSED_PARAM, char **argv)
        unsigned arpping_ms;
        IF_FEATURE_UDHCP_PORT(char *str_P;)
 
-#if ENABLE_FEATURE_UDHCP_PORT
-       SERVER_PORT = 67;
-       CLIENT_PORT = 68;
-#endif
+       setup_common_bufsiz();
+
+       IF_FEATURE_UDHCP_PORT(SERVER_PORT = 67;)
+       IF_FEATURE_UDHCP_PORT(CLIENT_PORT = 68;)
 
 #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1
        opt_complementary = "vv";