2008-08-20 14:00:34 +00:00
|
|
|
--- a/networking/udhcp/dhcpc.c
|
|
|
|
+++ b/networking/udhcp/dhcpc.c
|
2024-11-28 18:41:37 +00:00
|
|
|
@@ -1374,6 +1374,12 @@ int udhcpc_main(int argc UNUSED_PARAM, c
|
2021-08-31 15:12:44 +00:00
|
|
|
struct pollfd pfds[2];
|
|
|
|
struct dhcp_packet packet;
|
2007-07-18 08:23:36 +00:00
|
|
|
|
|
|
|
+ /* 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).
|
|
|
|
+ * Workaround: refresh it here before processing the next packet */
|
2019-06-15 09:16:55 +00:00
|
|
|
+ udhcp_read_interface(client_data.interface, &client_data.ifindex, NULL, client_data.client_mac);
|
2007-07-18 08:23:36 +00:00
|
|
|
+
|
2019-06-15 09:16:55 +00:00
|
|
|
//bb_error_msg("sockfd:%d, listen_mode:%d", client_data.sockfd, client_data.listen_mode);
|
2009-09-28 12:38:46 +00:00
|
|
|
|
|
|
|
/* Was opening raw or udp socket here
|