package: avoid the use of eval to parse ipcalc.sh output
authorLeon M. Busch-George <leon@georgemail.eu>
Sun, 18 Jun 2023 18:17:27 +0000 (20:17 +0200)
committerLeon M. Busch-George <leon@georgemail.eu>
Mon, 25 Sep 2023 13:02:49 +0000 (15:02 +0200)
commit6b23836071b171499f3983286a37a8d5c15eeab9
treeeafe72982925dee522c53af8ef0892ef1a7df569
parent59e681eea1fbf969ff6f2da315f18142b70424bd
package: avoid the use of eval to parse ipcalc.sh output

Add a function 'ipcalc' to /lib/functions.sh that sets variables more
safely using export.
With this new function, dnsmasq also handles the return value of ipcalc
correctly.

Fixes: e4bd3de1be8e ("dnsmasq: refuse to add empty DHCP range")
Co-Authored-By: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
package/base-files/files/lib/functions.sh
package/network/config/netifd/Makefile
package/network/config/netifd/files/lib/netifd/dhcp.script
package/network/ipv6/6rd/Makefile
package/network/ipv6/6rd/files/6rd.sh
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init