mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
modemmanager: add sourcefilter option support
This make source based IPv6 routing option available for modemmanager case dhcpv6 Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
committed by
Rosen Penev
parent
9b873f4247
commit
9877676890
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=modemmanager
|
PKG_NAME:=modemmanager
|
||||||
PKG_VERSION:=1.22.0
|
PKG_VERSION:=1.22.0
|
||||||
PKG_RELEASE:=15
|
PKG_RELEASE:=16
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
|
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git
|
||||||
|
|||||||
@@ -208,6 +208,7 @@ modemmanager_connected_method_dhcp_ipv6() {
|
|||||||
json_add_string proto "dhcpv6"
|
json_add_string proto "dhcpv6"
|
||||||
proto_add_dynamic_defaults
|
proto_add_dynamic_defaults
|
||||||
json_add_string extendprefix 1 # RFC 7278: Extend an IPv6 /64 Prefix to LAN
|
json_add_string extendprefix 1 # RFC 7278: Extend an IPv6 /64 Prefix to LAN
|
||||||
|
[ "$sourcefilter" = "0" ] && json_add_boolean sourcefilter "0"
|
||||||
[ -n "$metric" ] && json_add_int metric "${metric}"
|
[ -n "$metric" ] && json_add_int metric "${metric}"
|
||||||
json_close_object
|
json_close_object
|
||||||
ubus call network add_dynamic "$(json_dump)"
|
ubus call network add_dynamic "$(json_dump)"
|
||||||
@@ -270,6 +271,7 @@ proto_modemmanager_init_config() {
|
|||||||
proto_config_add_string preferredmode
|
proto_config_add_string preferredmode
|
||||||
proto_config_add_string pincode
|
proto_config_add_string pincode
|
||||||
proto_config_add_string iptype
|
proto_config_add_string iptype
|
||||||
|
proto_config_add_boolean sourcefilter
|
||||||
proto_config_add_string plmn
|
proto_config_add_string plmn
|
||||||
proto_config_add_int signalrate
|
proto_config_add_int signalrate
|
||||||
proto_config_add_boolean lowpower
|
proto_config_add_boolean lowpower
|
||||||
@@ -431,7 +433,7 @@ proto_modemmanager_setup() {
|
|||||||
local address prefix gateway mtu dns1 dns2
|
local address prefix gateway mtu dns1 dns2
|
||||||
|
|
||||||
json_get_vars device apn allowedauth username password
|
json_get_vars device apn allowedauth username password
|
||||||
json_get_vars pincode iptype plmn metric signalrate allow_roaming
|
json_get_vars pincode iptype sourcefilter plmn metric signalrate allow_roaming
|
||||||
json_get_vars allowedmode preferredmode force_connection
|
json_get_vars allowedmode preferredmode force_connection
|
||||||
|
|
||||||
json_get_vars init_epsbearer
|
json_get_vars init_epsbearer
|
||||||
|
|||||||
Reference in New Issue
Block a user