You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/package/network/services
Yousong Zhou 0299a4b73e dnsmasq: skip options that are not compiled in
This is to make life easier for users with customized build of
dnsmasq-full variant.  Currently dnsmasq config generated by current
service script will be rejected by dnsmasq build lacking DHCP feature

 - Options like --dhcp-leasefile have default values.  Deleting them
   from uci config or setting them to empty value will make them take on
   default value in the end
 - Options like --dhcp-broadcast are output unconditionally

Tackle this by

 - Check availablility of features from output of "dnsmasq --version"
 - Make a list of options guarded by HAVE_xx macros in src/options.c of
   dnsmasq source code
 - Ignore these options in xappend()

Two things to note in this implementation

 - The option list is not exhaustive.  Supposedly only those options that
   may cause dnsmasq to reject with "unsupported option (check that
   dnsmasq was compiled with DHCP/TFTP/DNSSEC/DBus support)" are taken
   into account here
 - This provides a way out but users' cooperation is still needed.  E.g.
   option dnssec needs to be turned off, otherwise the service script
   will try to add --conf-file pointing to dnssec specific anchor file
   which dnsmasq lacking dnssec support will reject

Resolves FS#2281

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
5 years ago
..
dnsmasq dnsmasq: skip options that are not compiled in 5 years ago
dropbear dropbear: allow build without dbclient 5 years ago
ead ead: use new protocol setting API since libpcap 1.9.0 6 years ago
hostapd hostapd: fix CVE-2019-9497, CVE-2019-9498, CVE-2019-9499 5 years ago
igmpproxy igmpproxy: drop SSDP packets 6 years ago
ipset-dns ipset-dns: bump to git HEAD 7 years ago
lldpd lldpd: add option to edit hostname 5 years ago
odhcpd odhcpd: update to latest git HEAD (FS#2242) 5 years ago
omcproxy omcproxy: define configuration file 5 years ago
openvpn openvpn: openssl: explicitly depend on deprecated APIs 5 years ago
openvpn-easy-rsa openvpn-easy-rsa: update to 3.0.4 6 years ago
ppp ppp: add config options to tune discovery timeout and attempts 5 years ago
relayd treewide: replace LEDE_GIT with PROJECT_GIT 7 years ago
samba36 samba36: allow build with no ipv6 support 5 years ago
uhttpd Revert "uhttpd: disable concurrent requests by default" 5 years ago
umdns treewide: replace LEDE_GIT with PROJECT_GIT 7 years ago
wireguard wireguard: bump to 0.0.20190601 5 years ago