diff options
author | Arjen de Korte <build+lede@de-korte.org> | 2016-12-20 22:29:59 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-03 22:27:23 +0100 |
commit | 10f91525bc1e823a1142a4402a58e39370bdbd9b (patch) | |
tree | 3b044a64409a2a7f272fca0ad59bac77489bd36b /package | |
parent | 1175a5b153061b677513fb75c5fe7b1a57dc2bd0 (diff) | |
download | upstream-10f91525bc1e823a1142a4402a58e39370bdbd9b.tar.gz upstream-10f91525bc1e823a1142a4402a58e39370bdbd9b.tar.bz2 upstream-10f91525bc1e823a1142a4402a58e39370bdbd9b.zip |
dnsmasq: add DHCP Unique Identifier for DHCPv6
Add DHCPv6 matching by DHCP Unique Identifier (RFC-3315) in addition to
existing MAC-address (RFC-6939). The latter is not widely supported yet.
Signed-off-by: Arjen de Korte <build+lede@de-korte.org>
Diffstat (limited to 'package')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index cec4b1290a..45fc29e2a6 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -278,6 +278,7 @@ dhcp_host_add() { config_get tag "$cfg" tag if [ "$DHCPv6CAPABLE" -eq 1 ]; then + config_get duid "$cfg" duid config_get hostid "$cfg" hostid if [ -n "$hostid" ]; then hex_to_hostid hostid "$hostid" @@ -289,7 +290,7 @@ dhcp_host_add() { config_get leasetime "$cfg" leasetime - xappend "--dhcp-host=$macs${networkid:+,net:$networkid}${broadcast:+,set:needs-broadcast}${tag:+,set:$tag}${ip:+,$ip${hostid:+,[::$hostid]}}${name:+,$name}${leasetime:+,$leasetime}" + xappend "--dhcp-host=$macs${duid:+,id:$duid}${networkid:+,net:$networkid}${broadcast:+,set:needs-broadcast}${tag:+,set:$tag}${ip:+,$ip${hostid:+,[::$hostid]}}${name:+,$name}${leasetime:+,$leasetime}" } dhcp_tag_add() { |