Changeset 38365


Ignore:
Timestamp:
2013-10-11T20:33:15+02:00 (4 years ago)
Author:
jow
Message:

dnsmasq: add option broadcast to host sections

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 <philipp@…>

Location:
trunk/package/network/services/dnsmasq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/dnsmasq/Makefile

    r36943 r38365  
    1010PKG_NAME:=dnsmasq 
    1111PKG_VERSION:=2.66 
    12 PKG_RELEASE:=3 
     12PKG_RELEASE:=4 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • trunk/package/network/services/dnsmasq/files/dnsmasq.init

    r38142 r38365  
    164164        dhcp_option_add "$cfg" "" 0 
    165165 
     166        xappend "--dhcp-broadcast=tag:needs-broadcast" 
     167 
    166168        echo >> $CONFIGFILE 
    167169} 
     
    271273        config_get tag "$cfg" tag 
    272274 
    273         xappend "--dhcp-host=$macs${networkid:+,net:$networkid}${tag:+,set:$tag}${ip:+,$ip}${name:+,$name}" 
     275        config_get_bool broadcast "$cfg" broadcast 0 
     276        [ "$broadcast" = "0" ] && broadcast= 
     277 
     278        xappend "--dhcp-host=$macs${networkid:+,net:$networkid}${broadcast:+,set:needs-broadcast}${tag:+,set:$tag}${ip:+,$ip}${name:+,$name}" 
    274279} 
    275280 
Note: See TracChangeset for help on using the changeset viewer.