aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/d6_dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r--networking/udhcp/d6_dhcpc.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 7c9f52ae7..dda4a9112 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -965,8 +965,6 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
965 SERVER_PORT = CLIENT_PORT - 1; 965 SERVER_PORT = CLIENT_PORT - 1;
966 } 966 }
967#endif 967#endif
968 if (opt & OPT_o)
969 client_config.no_default_options = 1;
970 while (list_O) { 968 while (list_O) {
971 char *optstr = llist_pop(&list_O); 969 char *optstr = llist_pop(&list_O);
972 unsigned n = bb_strtou(optstr, NULL, 0); 970 unsigned n = bb_strtou(optstr, NULL, 0);
@@ -976,6 +974,16 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
976 } 974 }
977 client_config.opt_mask[n >> 3] |= 1 << (n & 7); 975 client_config.opt_mask[n >> 3] |= 1 << (n & 7);
978 } 976 }
977 if (!(opt & OPT_o)) {
978 /*
979 unsigned i, n;
980 for (i = 0; (n = dhcp_optflags[i].code) != 0; i++) {
981 if (dhcp_optflags[i].flags & OPTION_REQ) {
982 client_config.opt_mask[n >> 3] |= 1 << (n & 7);
983 }
984 }
985 */
986 }
979 while (list_x) { 987 while (list_x) {
980 char *optstr = llist_pop(&list_x); 988 char *optstr = llist_pop(&list_x);
981 char *colon = strchr(optstr, ':'); 989 char *colon = strchr(optstr, ':');
@@ -1066,8 +1074,8 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
1066 retval = 0; 1074 retval = 0;
1067 /* If we already timed out, fall through with retval = 0, else... */ 1075 /* If we already timed out, fall through with retval = 0, else... */
1068 if ((int)tv.tv_sec > 0) { 1076 if ((int)tv.tv_sec > 0) {
1077 log1("Waiting on select %u seconds", (int)tv.tv_sec);
1069 timestamp_before_wait = (unsigned)monotonic_sec(); 1078 timestamp_before_wait = (unsigned)monotonic_sec();
1070 log1("Waiting on select...");
1071 retval = select(max_fd + 1, &rfds, NULL, NULL, &tv); 1079 retval = select(max_fd + 1, &rfds, NULL, NULL, &tv);
1072 if (retval < 0) { 1080 if (retval < 0) {
1073 /* EINTR? A signal was caught, don't panic */ 1081 /* EINTR? A signal was caught, don't panic */