Skip to content

Commit

Permalink
netifd: on dhcp interfaces, store the dhcp server in interface data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nbd168 committed Dec 10, 2021
1 parent b7d9bce commit baba2fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/network/config/netifd/files/lib/netifd/dhcp.script
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit baba2fd

Please sign in to comment.