There are certain consumer devices which are outliers in protocol conformance.
An example is Samsung bluray players, which require broadcast DHCP responses
(on Ethernet only, strangely
not on Wifi).
By specifying:
config host
option broadcast 1
this will enable the response to be sent as an Ethernet broadcast and not as a
unicast.
Signed-off-by: Philip Prindeville <[email protected]>
---
Index: package/network/services/dnsmasq/files/dnsmasq.init
===================================================================
--- package/network/services/dnsmasq/files/dnsmasq.init (revision 37816)
+++ package/network/services/dnsmasq/files/dnsmasq.init (working copy)
@@ -162,6 +162,8 @@ dnsmasq() {
dhcp_option_add "$cfg" "" 0
+ xappend "--dhcp-broadcast=tag:needs-broadcast"
+
echo >> $CONFIGFILE
}
@@ -269,7 +271,10 @@ dhcp_host_add() {
config_get tag "$cfg" tag
- xappend "--dhcp-host=$macs${networkid:+,net:$networkid}${tag:+,set:$tag}${ip:+,$ip}${name:+,$name}"
+ config_get_bool broadcast "$cfg" broadcast 0
+ [ "$broadcast" = "0" ] && broadcast=
+
+ xappend "--dhcp-host=$macs${networkid:+,net:$networkid}${broadcast:+,set:needs-broadcast}${tag:+,set:$tag}${ip:+,$ip}${name:+,$name}"
}
dhcp_tag_add() {
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel