umbim: delegate RFC7278 IPv6 prefixes from OOB config
authorLech Perczak <lech.perczak@gmail.com>
Sat, 6 Nov 2021 13:02:15 +0000 (14:02 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Apr 2023 19:33:05 +0000 (21:33 +0200)
Delegate prefixes received through MBIM control channel the same way, as
would be done through DHCP, according to RFC7278.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
package/network/utils/umbim/files/lib/netifd/proto/mbim.sh

index 617407cd085f79b45aeafcfc7964b5068adee7d8..eab5cf3de6915506e138523385d03f75f44f8892 100755 (executable)
@@ -258,6 +258,12 @@ _proto_mbim_setup() {
                        done
                        json_close_array
 
+                       json_add_array ip6prefix
+                       for address in $ipv6address; do
+                               json_add_string "" "$address"
+                       done
+                       json_close_array
+
                        json_add_string ip6gw $(_proto_mbim_get_field ipv6gateway "$mbimconfig")
 
                        [ "$peerdns" = 0 ] || {