dnsmasq: fix dhcp "ignore" option on wwan interfaces
authorMarcin Jurkowski <marcin1j@gmail.com>
Thu, 14 Sep 2017 12:49:10 +0000 (14:49 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Mon, 18 Sep 2017 08:14:34 +0000 (10:14 +0200)
commitfeab5fa51e829410ae6c572da282c14e9a7fd86f
tree1cb8deef0a095f47237ebdbc5c7514534c1086ed
parent400c5f03c30b39ef149a1edc0a4b5b2c0bb94317
dnsmasq: fix dhcp "ignore" option on wwan interfaces

Init script won't append --no-dhcp-interface option if interface
protocol is one of: ncm, directip, qmi, mbim.
This is caused by IP address assigned to dynamically created netifd
interfaces. As a result there's no netmask assigned to the main
interface and dhcp_add() function returns prematurely.

By moving network subnet check we can ensure that --no-dhcp-interface is
properly generated for wwan interfaces.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase; move network checks]
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init