uqmi: do not start 464xlat for dual-stack configurations
authorLech Perczak <lech.perczak@gmail.com>
Sat, 12 Mar 2022 16:57:44 +0000 (17:57 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 11 Jun 2023 16:26:41 +0000 (18:26 +0200)
If dual-stack configuration is in use, and dhcpv6 option is set, do not start
464xlat sub-interface for dhcpv6 sub-interace , as the configuration already
provides IPv4 connectivty, be it through single or dual APN configuration.

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

index fd90d581e128d7b0fb98ca6cc453fd4fce8e6b38..6c5104bccd834738abd1cc0ec1e71388e496d0cd 100755 (executable)
@@ -388,6 +388,7 @@ proto_qmi_setup() {
                        json_init
                        json_add_string name "${interface}_6"
                        json_add_string ifname "@$interface"
+                       [ "$pdptype" = "ipv4v6" ] && json_add_string iface_464xlat "0"
                        json_add_string proto "dhcpv6"
                        [ -n "$ip6table" ] && json_add_string ip6table "$ip6table"
                        proto_add_dynamic_defaults