DHCPv4 allows for custom information to be provided to network devices, using "private-use" options. The IANA registry of DHCP parameters reserves option numbers 224 to 254 for private use.
Does DHCPv6 have an equivalent of DHCPv4's private-use options? I can't see any in the IANA registry of DHCPv6 parameters.
I found a draft Site Specific Options for DHCP for IPv6 which proposes site-specific options, but says they must not be used for vendor-specific options.
One possible usage scenario is, I'm interested in making a network device which can automatically get a server address for a custom IP protocol. So the DHCPv4 private-use option seemed like a possible avenue for the device to request the server address, and the DHCP server to provide it.
After investigating this further myself...
It would be better to use vendor-specific options rather than private-use options. (Eg I'm interested in making a network device which can query the DHCP server for a server address for a custom IP protocol.)
For DHCPv4:
For DHCPv6:
For many DHCPv4 and DHCPv6 servers, it is most likely necessary to configure the option by specifying it as a binary data string, entering the data as hex digits. I found the following configuration examples: