mirror of https://github.com/mirror/busybox.git
udhcpc: periodically reread our ifindex and mac
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_18_stable
parent
b3af65b95d
commit
a5048fa386
|
@ -1167,6 +1167,16 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
|
||||||
* resend discover/renew/whatever
|
* resend discover/renew/whatever
|
||||||
*/
|
*/
|
||||||
if (retval == 0) {
|
if (retval == 0) {
|
||||||
|
/* When running on a bridge, the ifindex may have changed
|
||||||
|
* (e.g. if member interfaces were added/removed
|
||||||
|
* or if the status of the bridge changed).
|
||||||
|
* Refresh ifindex and client_mac:
|
||||||
|
*/
|
||||||
|
udhcp_read_interface(client_config.interface,
|
||||||
|
&client_config.ifindex,
|
||||||
|
NULL,
|
||||||
|
client_config.client_mac);
|
||||||
|
|
||||||
/* We will restart the wait in any case */
|
/* We will restart the wait in any case */
|
||||||
already_waited_sec = 0;
|
already_waited_sec = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue