aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/d6_dhcpc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-01-19 18:44:19 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-01-19 18:44:19 +0100
commitf6dd9e02155430a608e1b38036e355c045772d04 (patch)
treed7d66dd176a5ea3a01deeeb4ba906f8a12e49a60 /networking/udhcp/d6_dhcpc.c
parent46f839c3f7476cb9016c4787729f64a2c24509d1 (diff)
downloadbusybox-f6dd9e02155430a608e1b38036e355c045772d04.tar.gz
udhcpc6: fix for ppp interface type
function old new delta d6_read_interface 454 600 +146 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r--networking/udhcp/d6_dhcpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index f3a7b827c..07a8b11c1 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -1093,6 +1093,8 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
int retval;
setup_common_bufsiz();
+ /* We want random_xid to be random */
+ srand(monotonic_us());
/* Default options */
IF_FEATURE_UDHCP_PORT(SERVER_PORT6 = 547;)
@@ -1207,8 +1209,6 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
bb_error_msg("started, v"BB_VER);
/* Set up the signal pipe */
udhcp_sp_setup();
- /* We want random_xid to be random... */
- srand(monotonic_us());
state = INIT_SELECTING;
d6_run_script(NULL, "deconfig");