aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/comgt
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-09-03 15:53:40 +0000
committerSteven Barth <cyrus@openwrt.org>2015-09-03 15:53:40 +0000
commitf96bf30dc616f90de30e312af44c69b66268b830 (patch)
tree291205f49a86ca1d165a23d424663b089fe9998a /package/network/utils/comgt
parent72b4ed113a07ebc7eee82c331111853aa81f9b36 (diff)
downloadupstream-f96bf30dc616f90de30e312af44c69b66268b830.tar.gz
upstream-f96bf30dc616f90de30e312af44c69b66268b830.tar.bz2
upstream-f96bf30dc616f90de30e312af44c69b66268b830.zip
comgt/umbim/uqmi: enable RFC 7278 for 3g/4g by default
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46780
Diffstat (limited to 'package/network/utils/comgt')
-rw-r--r--package/network/utils/comgt/files/3g.sh3
-rw-r--r--package/network/utils/comgt/files/directip.sh1
-rw-r--r--package/network/utils/comgt/files/ncm.sh1
3 files changed, 5 insertions, 0 deletions
diff --git a/package/network/utils/comgt/files/3g.sh b/package/network/utils/comgt/files/3g.sh
index 968662675b..8aecb0fd62 100644
--- a/package/network/utils/comgt/files/3g.sh
+++ b/package/network/utils/comgt/files/3g.sh
@@ -89,6 +89,9 @@ proto_3g_setup() {
;;
esac
+ # Enable RFC 7278
+ proto_export "EXTENDPREFIX=1"
+
connect="${apn:+USE_APN=$apn }DIALNUMBER=$dialnumber /usr/sbin/chat -t5 -v -E -f $chat"
ppp_generic_setup "$interface" \
noaccomp \
diff --git a/package/network/utils/comgt/files/directip.sh b/package/network/utils/comgt/files/directip.sh
index 66d92a7c2c..d82805278c 100644
--- a/package/network/utils/comgt/files/directip.sh
+++ b/package/network/utils/comgt/files/directip.sh
@@ -86,6 +86,7 @@ proto_directip_setup() {
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
+ json_add_string extendprefix 1
ubus call network add_dynamic "$(json_dump)"
return 0
diff --git a/package/network/utils/comgt/files/ncm.sh b/package/network/utils/comgt/files/ncm.sh
index 1f0d0db2e7..ffe5615e07 100644
--- a/package/network/utils/comgt/files/ncm.sh
+++ b/package/network/utils/comgt/files/ncm.sh
@@ -131,6 +131,7 @@ proto_ncm_setup() {
json_add_string name "${interface}_6"
json_add_string ifname "@$interface"
json_add_string proto "dhcpv6"
+ json_add_string extendprefix 1
ubus call network add_dynamic "$(json_dump)"
}