comgt/umbim/uqmi: enable RFC 7278 for 3g/4g by default
authorSteven Barth <cyrus@openwrt.org>
Thu, 3 Sep 2015 15:53:40 +0000 (15:53 +0000)
committerSteven Barth <cyrus@openwrt.org>
Thu, 3 Sep 2015 15:53:40 +0000 (15:53 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46780

package/network/services/ppp/files/lib/netifd/ppp-up
package/network/utils/comgt/files/3g.sh
package/network/utils/comgt/files/directip.sh
package/network/utils/comgt/files/ncm.sh
package/network/utils/umbim/files/lib/netifd/proto/mbim.sh
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index 105ecbe8445ccd2e13f18bf6572ae913e6bb9c4f..7511042639d22605f9f4377157db039204e9ad8c 100755 (executable)
@@ -25,6 +25,7 @@ if [ -n "$AUTOIPV6" ]; then
        json_add_string name "${PPP_IPPARAM}_6"
        json_add_string ifname "@$PPP_IPPARAM"
        json_add_string proto "dhcpv6"
+       [ -n "$EXTENDPREFIX" ] && json_add_string extendprefix 1
        json_close_object
        ubus call network add_dynamic "$(json_dump)"
 fi
index 968662675b42e4204af3813191ad55717c2727b5..8aecb0fd62a0e55d3835ff17877342dd16f3b048 100644 (file)
@@ -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 \
index 66d92a7c2cc7d9fbbb379e5ae07a4eac0934b15e..d82805278c98ecbd02a8fe222b1e2062303effd9 100644 (file)
@@ -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
index 1f0d0db2e7081a6992fc2fb17db41e5bcc0363a2..ffe5615e0712016f395f184c03f10724428e8030 100644 (file)
@@ -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)"
 }
 
index db0c7b0c3c784f152008f6008f51db9e3fec1100..f8b2c06b67abbcc66a84bf39bd389cca3a2b9d92 100755 (executable)
@@ -137,6 +137,7 @@ _proto_mbim_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)"
 }
 
index 25e5d1f521b739485998cd3d2d374bc44f790c2b..b416da6bc82caa2b41227508afc05ecbe69ec940 100755 (executable)
@@ -128,6 +128,7 @@ _proto_qmi_setup() {
        json_add_string name "${interface}_6"
        json_add_string ifname "@$interface"
        json_add_string proto "dhcpv6"
+       json_add_string extendprefix 1
        json_close_object
        ubus call network add_dynamic "$(json_dump)"
 }