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

openwrt-devel at couprie.net openwrt-devel at couprie.net
Fri Apr 24 06:23:09 EDT 2015


Could something likes this be added ?

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

  dhcp_option_add() {

Perry

On 23-04-15 23:20, Kevin Darbyshire-Bryant wrote:
> On 23/04/2015 21:55, openwrt-devel at 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 at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150424/5717e309/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list