dhcpv6-ia: allow up to 64 bit wide hostid
authorMikael Magnusson <mikma@users.sourceforge.net>
Wed, 14 Jul 2021 20:46:55 +0000 (22:46 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Sat, 14 Aug 2021 19:11:30 +0000 (21:11 +0200)
commit16667699228101fda936068e3d11c0cf19270e34
tree48cf08135c5286bb45c8c5f3606b92208f811fdc
parentbc9d317f2921ae6b529f2c9f8de79b75992e206f
dhcpv6-ia: allow up to 64 bit wide hostid

Add dhcpv6_hostid_len config option which controls the number
of bits in the host identifier of dynamically assigned IPv6
addresses. The default is 12 bits which is also the minimum.
The maximum is the whole interface identifier, i.e. 64 bits.

Allow up to 64 bit wide hostid in static leases.

Fixes #84 and #27.

Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
README
src/config.c
src/dhcpv6-ia.c
src/odhcpd.h
src/ubus.c