openwrt/package/network/services
Etan Kissling ba5bd8e556 dnsmasq: distinct Ubus names for multiple instances
Currently, when using multiple dnsmasq instances they are all assigned
to the same Ubus instance name. This does not work, as only a single
instance can register with Ubus at a time. In the log, this leads to
`Cannot add object to UBus: Invalid argument` error messages.
Furthermore, upstream 3c93e8eb41952a9c91699386132d6fe83050e9be changes
behaviour so that instead of the log, dnsmasq exits at start instead.

With this patch, all dnsmasq instances are assigned unique names so that
they can register with Ubus concurrently. One of the enabled instances
is always assigned the previous default name "dnsmasq" to avoid breaking
backwards compatibility with other software relying on that default.
Previously, a random instance got assigned that name (while the others
produced error logs). Now, the first unnamed dnsmasq config section is
assigned the default name. If there are no unnamed dnsmasq sections the
first encountered named dnsmasq config section is assigned instead.

A similar issue exists for Dbus and was similarly addressed.

Signed-off-by: Etan Kissling <etan.kissling@gmail.com>
[tweaked commit message] dnsmasq was not crashing it is exiting
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2021-06-29 11:27:26 +01:00
..
dnsmasq dnsmasq: distinct Ubus names for multiple instances 2021-06-29 11:27:26 +01:00
dropbear build: introduce $(MKHASH) 2021-05-13 15:13:15 +02:00
ead ead: fix resource leak in tinysrp 2020-01-05 19:36:46 +01:00
hostapd hostapd: add support for providing vendor specific IE elements 2021-06-24 15:56:46 +02:00
ipset-dns base-files: move /tmp/resolv.conf.auto to /tmp/resolv.conf.d/ 2020-01-07 15:36:03 +02:00
lldpd lldpd: further size reductions 2021-04-05 18:50:17 +03:00
odhcpd treewide: remove PKG_INSTALL from CMake packages 2021-06-19 20:44:59 -10:00
omcproxy omcproxy: define configuration file 2019-02-27 10:26:14 +01:00
ppp ppp: compile fix: unset FILTER variable in Makefile 2021-03-19 00:25:58 +01:00
relayd relayd: bump to version 2020-04-25 2020-04-26 13:00:36 +01:00
uhttpd uhttpd: make organization (O=) of the cert configurable via uci 2021-06-20 13:50:36 -10:00
umdns umdns: bump to git HEAD 2021-05-16 03:59:54 +03:00