comgt/umbim/uqmi: enable RFC 7278 for 3g/4g by default

Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 46780
This commit is contained in:
Steven Barth 2015-09-03 15:53:40 +00:00
parent 72b4ed113a
commit f96bf30dc6
6 changed files with 8 additions and 0 deletions

View File

@ -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

View 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 \

View 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

View 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)"
}

View File

@ -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)"
}

View File

@ -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)"
}