mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 01:52:51 +00:00 
			
		
		
		
	 4b07afe59f
			
		
	
	4b07afe59f
	
	
	
		
			
			19fcc8d update schemareader bef2a8f state: add the upstream dhcp servers ip to the state message Signed-off-by: John Crispin <john@phrozen.org>
		
			
				
	
	
		
			31 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From a3598bcbc83224faf0d2ecb55761d048a1beb6d1 Mon Sep 17 00:00:00 2001
 | |
| From: Felix Fietkau <nbd@nbd.name>
 | |
| Date: Fri, 10 Dec 2021 10:16:18 +0100
 | |
| Subject: [PATCH] netifd: on dhcp interfaces, store the dhcp server in
 | |
|  interface data
 | |
| 
 | |
| Among other things, this can be used to auto-configure the DHCP server
 | |
| address for wireless APs using FILS, if the bridged interface is
 | |
| configured to DHCP
 | |
| 
 | |
| Signed-off-by: Felix Fietkau <nbd@nbd.name>
 | |
| ---
 | |
|  package/network/config/netifd/files/lib/netifd/dhcp.script | 1 +
 | |
|  1 file changed, 1 insertion(+)
 | |
| 
 | |
| diff --git a/package/network/config/netifd/files/lib/netifd/dhcp.script b/package/network/config/netifd/files/lib/netifd/dhcp.script
 | |
| index e46005d84c..6fcf139beb 100755
 | |
| --- a/package/network/config/netifd/files/lib/netifd/dhcp.script
 | |
| +++ b/package/network/config/netifd/files/lib/netifd/dhcp.script
 | |
| @@ -60,6 +60,7 @@ setup_interface () {
 | |
|  	[ -n "$message" ]  && json_add_string message "$message"
 | |
|  	[ -n "$timezone" ] && json_add_int timezone "$timezone"
 | |
|  	[ -n "$lease" ]    && json_add_int leasetime "$lease"
 | |
| +	[ -n "$serverid" ] && json_add_string dhcpserver "$serverid"
 | |
|  	proto_close_data
 | |
|  
 | |
|  	proto_send_update "$INTERFACE"
 | |
| -- 
 | |
| 2.25.1
 | |
| 
 |