diff mbox

[OpenWrt-Devel] dnsmasq and --dhcp-relay option ?

Message ID 553A198D.5020803@couprie.net
State RFC
Headers show

Commit Message

openwrt-devel@couprie.net April 24, 2015, 10:23 a.m. UTC
Could something likes this be added ?


  dhcp_option_add() {

Perry

On 23-04-15 23:20, Kevin Darbyshire-Bryant wrote:
> On 23/04/2015 21:55, openwrt-devel@couprie.net wrote:
>> Hi,
>>
>> I need the dnsmasq --dhcp-relay option, how do i add this option to 
>> the dnsmasq script ?
>>
>> Perry
>
> You could edit '/etc/dnsmasq.conf' and add your option/s directly to 
> it.  Does that achieve your aim?
>
> Kevin
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
diff mbox

Patch

--- dnsmasq.orig    2015-04-24 12:14:51.453093251 +0200
+++ dnsmasq    2015-04-24 12:15:15.121092827 +0200
@@ -416,6 +416,10 @@ 
      xappend 
"--dhcp-range=$networkid,$START,$END,$NETMASK,$leasetime${options:+ 
$options}"

      dhcp_option_add "$cfg" "$networkid"
+
+    config_get relay "$cfg" relay
+    network_get_ipaddr interface_ip "$networkid"
+    xappend "--dhcp-relay=$interface_ip,$relay"
  }