udhcp: add setup_common_bufsiz() as needed
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
9de2e5a222
commit
df70a43af2
@ -930,6 +930,8 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
int retval;
|
int retval;
|
||||||
fd_set rfds;
|
fd_set rfds;
|
||||||
|
|
||||||
|
setup_common_bufsiz();
|
||||||
|
|
||||||
/* Default options */
|
/* Default options */
|
||||||
IF_FEATURE_UDHCP_PORT(SERVER_PORT6 = 547;)
|
IF_FEATURE_UDHCP_PORT(SERVER_PORT6 = 547;)
|
||||||
IF_FEATURE_UDHCP_PORT(CLIENT_PORT6 = 546;)
|
IF_FEATURE_UDHCP_PORT(CLIENT_PORT6 = 546;)
|
||||||
|
@ -1268,6 +1268,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
int retval;
|
int retval;
|
||||||
fd_set rfds;
|
fd_set rfds;
|
||||||
|
|
||||||
|
setup_common_bufsiz();
|
||||||
|
|
||||||
/* Default options */
|
/* Default options */
|
||||||
IF_FEATURE_UDHCP_PORT(SERVER_PORT = 67;)
|
IF_FEATURE_UDHCP_PORT(SERVER_PORT = 67;)
|
||||||
IF_FEATURE_UDHCP_PORT(CLIENT_PORT = 68;)
|
IF_FEATURE_UDHCP_PORT(CLIENT_PORT = 68;)
|
||||||
|
@ -310,10 +310,10 @@ int udhcpd_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
unsigned arpping_ms;
|
unsigned arpping_ms;
|
||||||
IF_FEATURE_UDHCP_PORT(char *str_P;)
|
IF_FEATURE_UDHCP_PORT(char *str_P;)
|
||||||
|
|
||||||
#if ENABLE_FEATURE_UDHCP_PORT
|
setup_common_bufsiz();
|
||||||
SERVER_PORT = 67;
|
|
||||||
CLIENT_PORT = 68;
|
IF_FEATURE_UDHCP_PORT(SERVER_PORT = 67;)
|
||||||
#endif
|
IF_FEATURE_UDHCP_PORT(CLIENT_PORT = 68;)
|
||||||
|
|
||||||
#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1
|
#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1
|
||||||
opt_complementary = "vv";
|
opt_complementary = "vv";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user