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 name "${PPP_IPPARAM}_6"
json_add_string ifname "@$PPP_IPPARAM" json_add_string ifname "@$PPP_IPPARAM"
json_add_string proto "dhcpv6" json_add_string proto "dhcpv6"
[ -n "$EXTENDPREFIX" ] && json_add_string extendprefix 1
json_close_object json_close_object
ubus call network add_dynamic "$(json_dump)" ubus call network add_dynamic "$(json_dump)"
fi fi

View file

@ -89,6 +89,9 @@ proto_3g_setup() {
;; ;;
esac esac
# Enable RFC 7278
proto_export "EXTENDPREFIX=1"
connect="${apn:+USE_APN=$apn }DIALNUMBER=$dialnumber /usr/sbin/chat -t5 -v -E -f $chat" connect="${apn:+USE_APN=$apn }DIALNUMBER=$dialnumber /usr/sbin/chat -t5 -v -E -f $chat"
ppp_generic_setup "$interface" \ ppp_generic_setup "$interface" \
noaccomp \ noaccomp \

View file

@ -86,6 +86,7 @@ proto_directip_setup() {
json_add_string name "${interface}_6" json_add_string name "${interface}_6"
json_add_string ifname "@$interface" json_add_string ifname "@$interface"
json_add_string proto "dhcpv6" json_add_string proto "dhcpv6"
json_add_string extendprefix 1
ubus call network add_dynamic "$(json_dump)" ubus call network add_dynamic "$(json_dump)"
return 0 return 0

View file

@ -131,6 +131,7 @@ proto_ncm_setup() {
json_add_string name "${interface}_6" json_add_string name "${interface}_6"
json_add_string ifname "@$interface" json_add_string ifname "@$interface"
json_add_string proto "dhcpv6" json_add_string proto "dhcpv6"
json_add_string extendprefix 1
ubus call network add_dynamic "$(json_dump)" 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 name "${interface}_6"
json_add_string ifname "@$interface" json_add_string ifname "@$interface"
json_add_string proto "dhcpv6" json_add_string proto "dhcpv6"
json_add_string extendprefix 1
ubus call network add_dynamic "$(json_dump)" 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 name "${interface}_6"
json_add_string ifname "@$interface" json_add_string ifname "@$interface"
json_add_string proto "dhcpv6" json_add_string proto "dhcpv6"
json_add_string extendprefix 1
json_close_object json_close_object
ubus call network add_dynamic "$(json_dump)" ubus call network add_dynamic "$(json_dump)"
} }