DHCPv6: vendor specific option 17 included multiple times in the DHCP reply
name: Bug report
about: Create a report to help us improve
If you believe your bug report is a security issue (e.g. a packet that can kill the server), DO NOT REPORT IT HERE. Please use https://www.isc.org/community/report-bug/ instead or send mail to security-office(at)isc(dot)org.
Describe the bug I have an IoT endpoint which requests an IPv6 address and an application server IP address via option 17. What I noticed is KEA includes the same option multiple times in the reply instead of inserting it only once.
To Reproduce Steps to reproduce the behavior:
- Run Kea dhcpv6 with the following config: kea-dhcp6.conf
- A client sends an DHCPv6 sollicit with rapid-commit and option-17 option which is relayed by a field router.
- The server allocates an IPv6 address and reply back with option-17 which seems malformed
- Please review the pcap file: capture3.pcap or the following screenshot:
Expected behavior The option should be listed only once in the Vendor Specific Information field
Environment:
- Kea version: 1.6.3
- OS: Ubuntu 20.04.2
Additional Information Here is an extract from the config file covering the option 17 and subnet definition:
"option-def": [
{
"name": "FND",
"code": 1,
"space": "vendor-26484",
"type": "ipv6-address",
"array": false,
"encapsulate": ""
}
],
"option-data": [
{
"name": "vendor-opts",
"data": "26484"
},
{
"name": "FND",
"space": "vendor-26484",
"data": "fd10::1:d",
"always-send": true
}
],
"subnet6": [
{
"subnet": "fd12:0:0:5::/64",
"rapid-commit": true,
"id": 10,
"pools": [
{
"pool": "fd12:0:0:5::1-fd12::5:ffff:ffff:ffff:fffe"
}
]
}
]
Contacting you email
Thanks for your support