[LEDE-DEV] [PATCH] Add procd triggers only for interfaces that dnsmasq is interested in.

Eric Luehrsen ericluehrsen at gmail.com
Mon May 7 17:44:55 PDT 2018


On 05/07/2018 06:37 PM, hux wrote:
> Signed-off-by: hux <xinxing.huchn at gmail.com>
> ---
> Right now interface.update events are sent out by netifd upon interface state, route, address (lifetime), prefix lifetime changes. Dnsmasq is only interested in interface state changes and currently adds an interface trigger for all the "interface.*" events.
> 
> In combination with commit 23bba9cb330, which triggers a SIGHUP signal to dnsmasq, IPv6 address/prefix lifetime changes on the wan will trigger dnsmasq reloads which can become frequent in case of shorter lifetimes.
> 
> To avoid frequent dnsmasq reload, this patch adds specific interface triggers. During dnsmasq init, it loops dhcp uci section. If the value of the ignore option is set to 0, then the corresponding interface trigger is not installed. Otherwise, if the ignore option value is 1, then procd_add_interface_trigger is called and the trigger is added.
> 

It would be nice, if the root cause in netifd and procd as a combination 
was somehow resolved. Bug tracker that's been idle awhile:
https://bugs.openwrt.org/index.php?do=details&task_id=713

- Eric



More information about the Lede-dev mailing list