← Commit list

219757fee

Denys Vlasenko
Denys Vlasenko
2009-10-08
FAILED Duration: 30s

Subject

udhcpc: fix bug 629: use bcast receive when we perform rebinding

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/udhcp/dhcpc.c+2 -1
@@ -451,6 +451,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
state = REBINDING;
/* fall right through */
case REBINDING:
+ /* Switch to bcast receive */
+ change_listen_mode(LISTEN_RAW);
/* Lease is *really* about to run out,
* try to find DHCP server using broadcast */
if (timeout > 0) {
@@ -462,7 +464,6 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
/* Timed out, enter init state */
bb_info_msg("Lease lost, entering init state");
udhcp_run_script(NULL, "deconfig");
- change_listen_mode(LISTEN_RAW);
state = INIT_SELECTING;
/*timeout = 0; - already is */
packet_num = 0;