dnsmasq: add support for multiple tags for each host.
authorKuang Rufan <kuangrufan@pset.suntec.net>
Fri, 25 Aug 2017 06:10:21 +0000 (14:10 +0800)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 25 Aug 2017 12:28:49 +0000 (14:28 +0200)
commit1e6e37c4f69d39d1cb2b988c7f6fd7e2227d2dbe
treef08f7764ff7d6ef0fc777f9997e4b977511b1b61
parentcdb494fdc2d3399e698893ff0cfd06d3c802364f
dnsmasq: add support for multiple tags for each host.

Currently, dnsmasq support assigning multiple tags to a host record
(--dhcp-host), but we only support only 1 tag for a host. The commit
makes the following config to be valid:

  config host
      option name 'computer'
      option mac '00:11:22:33:44:55'
      option ip '192.168.1.100'
      list tag 'vendor_class'
      list tag 'vendor_id'

  config tag 'vendor_class'
      list dhcp_option 'option:vendor-class,00:...<omitted>'

  config tag 'vendor_id'
      option force '1'
      list dhcp_option 'option:vendor-id-encap,00:...<omitted>'

Signed-off-by: Kuang Rufan <kuangrufan@pset.suntec.net>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init