[openwrt/openwrt] netifd: on dhcp interfaces, store the dhcp server in interface data

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 10 02:34:32 PST 2021


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/baba2fdaa60c2f2426ec09eaacd6dfb7cec3fd2c

commit baba2fdaa60c2f2426ec09eaacd6dfb7cec3fd2c
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Dec 10 10:16:18 2021 +0100

    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 at 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"



More information about the lede-commits mailing list