mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 18:38:10 +00:00 
			
		
		
		
	patches: remove busybox udhcpc endless loop fix
Remove busybox udhcpc endless loop fix as this issue no longer exists in the busybox version included in OpenWrt 24.10. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -1,34 +0,0 @@ | ||||
| From c588df50abd3b394e7468f432434f70f03976a4a Mon Sep 17 00:00:00 2001 | ||||
| From: John Crispin <john@phrozen.org> | ||||
| Date: Thu, 9 Nov 2023 12:28:38 +0100 | ||||
| Subject: [PATCH 09/68] busybox: udhcpc would enter an endless loop if the | ||||
|  interface is down | ||||
|  | ||||
| Signed-off-by: John Crispin <john@phrozen.org> | ||||
| --- | ||||
|  .../busybox/patches/532-dhcp-socket-reopen.patch    | 13 +++++++++++++ | ||||
|  1 file changed, 13 insertions(+) | ||||
|  create mode 100644 package/utils/busybox/patches/532-dhcp-socket-reopen.patch | ||||
|  | ||||
| diff --git a/package/utils/busybox/patches/532-dhcp-socket-reopen.patch b/package/utils/busybox/patches/532-dhcp-socket-reopen.patch | ||||
| new file mode 100644 | ||||
| index 0000000000..17cec7764a | ||||
| --- /dev/null | ||||
| +++ b/package/utils/busybox/patches/532-dhcp-socket-reopen.patch | ||||
| @@ -0,0 +1,13 @@ | ||||
| +Index: busybox-1.36.1/networking/udhcp/dhcpc.c | ||||
| +=================================================================== | ||||
| +--- busybox-1.36.1.orig/networking/udhcp/dhcpc.c | ||||
| ++++ busybox-1.36.1/networking/udhcp/dhcpc.c | ||||
| +@@ -1638,6 +1645,8 @@ int udhcpc_main(int argc UNUSED_PARAM, c | ||||
| + 				bb_error_msg("read error: "STRERROR_FMT", reopening socket" STRERROR_ERRNO); | ||||
| + 				sleep(discover_timeout); /* 3 seconds by default */ | ||||
| + 				change_listen_mode(client_data.listen_mode); /* just close and reopen */ | ||||
| ++				packet_num++; | ||||
| ++				timeout = 0; | ||||
| + 			} | ||||
| + 			if (len < 0) | ||||
| + 				continue; | ||||
| --  | ||||
| 2.34.1 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin