]> git.ipfire.org Git - thirdparty/openwrt.git/commit
scripts: dhcpv6: don't report custom ip6class if default 23989/head
authorShine <4c.fce2@proton.me>
Mon, 29 Jun 2026 07:23:45 +0000 (09:23 +0200)
committerRobert Marko <robimarko@gmail.com>
Mon, 29 Jun 2026 12:50:18 +0000 (14:50 +0200)
commit257aee0cc0306de8bae6b3095908983c3db856d5
treee4ad7d4f2ff367f4fb75f70df7fc8f4a483c3292
parentab40696d6134c842a93112a7a0325a148b3b1a2b
scripts: dhcpv6: don't report custom ip6class if default

odhcp6c returns delegated prefixes with a "class=<IAID>" tag if a custom
IAID was specified in the -P argument. This tag must then be used for any
prefix filter ("network.<interface>.ip6class") instead of the uplink i/f
name.

OpenWrt by default uses the first eight digits of the uplink i/f name's MD5
hash as IAID. Don't report a custom "class" tag for this default IAID.

Fixes: f08cd5ce5d66d76fa6e282d6e3f29bab9cdf8023
Signed-off-by: Shine <4c.fce2@proton.me>
Tested-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23989
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/ipv6/odhcp6c/files/dhcpv6.script