mirror of
https://github.com/openwrt/openwrt.git
synced 2026-07-17 16:41:56 +04:00
f08cd5ce5d
For DHCPv6 address requests (IA_NA), odhcp6c currently uses the first eight digits of the i/f name's MD5 hash as IAID. In case of DHCPv6-PD, however, odhcp6c expects the IAID to be specified explicitly for the IA_PD(s) requested, otherwise it will start counting the IAID from "1" up for each "-P" argument. As OpenWrt only requests a single IA_PD per interface, make sure to pass the identical IAID for IA_PD as is used for IA_NA, unless a custom IAID was explicitly specified in the i/f configuration. This prevents regressions with ISPs that expect an IA_PD request to come from the same IAID+DUID combination as the IA_NA request. In addition, add some validation of the "reqprefix" value, in order to catch most cases that would otherwise result in netifd or odhcp6c malfunction. Signed-off-by: Shine <4c.fce2@proton.me> Link: https://github.com/openwrt/openwrt/pull/23758 Signed-off-by: Robert Marko <robimarko@gmail.com>