On Nov 9, 2026, at 6:19 AM, Ľudovít Mikula via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
I found a bug in the 3.2.10 version (tried also against built v3.2.x HEAD) concerning Option82 sub-options encoding in the response.
- fr_dhcp_encode sorts the reply attributes with fr_dhcp_attr_cmp - fr_dhcp_encode_option writes one Option 82 header and fr_dhcp_vp2data_tlv then packs sub-options only while they are next to each other in the sorted list - any other attribute that sorts between Relay-Circuit-Id and Relay-Remote-Id ends the run, and the next sub-option starts a second Option 82
For example DHCP-Your-IP-Address (attribute 264) is a packet header field, not an option - the encoder skips it, but it sits between the two sub-options, so they go out as two Option 82 instances.
Here is a patch to fix it:
Thanks. I've committed the patch, and added a test. Alan DeKok.