dnsmasq: support hostid ipv6 address suffix option
authorKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Mon, 31 Aug 2015 17:11:41 +0000 (18:11 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 10 Jun 2016 16:16:47 +0000 (18:16 +0200)
commite8150364608e38e6b30ea0859ffa17ccb1fcc890
tree28cfa4236bd6e116a162f48eb1b4192c76f1e43b
parent4b8f0a2d26e5477b2dc4542ec7438665a906b756
dnsmasq: support hostid ipv6 address suffix option

Add support for hostid dhcp config entry to dnsmasq. This allows
specification of dhcpv6 hostid suffix and works in the same way as
odhcpd.

Entries in auto generated dnsmasq.conf should conform to:

dhcp-host=mm:mm:mm:mm:mm:mm,IPv4addr,[::V6su:ffix],hostname

example based on sample config/dhcp entry:

config host
        option name 'Kermit'
        option mac 'E0:3F:49:A1:D4:AA'
        option ip '192.168.235.4'
        option hostid '4'

dhcp-host=E0:3F:49:A1:D4:AA,192.168.235.4,[::0:4],Kermit

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
package/network/services/dnsmasq/files/dnsmasq.init