Selaa lähdekoodia

uqmi: do not start 464xlat for dual-stack configurations

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 <[email protected]>
Lech Perczak 3 vuotta sitten
vanhempi
sitoutus
a9237c1af9
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

+ 1 - 0
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

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