mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add sourcefilter support to ModemManager
This commit is contained in:
		
							parent
							
								
									bedd03c73c
								
							
						
					
					
						commit
						38c232e12b
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -208,6 +208,7 @@ modemmanager_connected_method_dhcp_ipv6() { | |||
| 	json_add_string proto "dhcpv6" | ||||
| 	proto_add_dynamic_defaults | ||||
| 	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}" | ||||
| 	json_close_object | ||||
| 	ubus call network add_dynamic "$(json_dump)" | ||||
|  | @ -270,6 +271,7 @@ proto_modemmanager_init_config() { | |||
| 	proto_config_add_string preferredmode | ||||
| 	proto_config_add_string pincode | ||||
| 	proto_config_add_string iptype | ||||
| 	proto_config_add_boolean sourcefilter | ||||
| 	proto_config_add_string plmn | ||||
| 	proto_config_add_int signalrate | ||||
| 	proto_config_add_boolean lowpower | ||||
|  | @ -429,7 +431,7 @@ proto_modemmanager_setup() { | |||
| 	local address prefix gateway mtu dns1 dns2 | ||||
| 
 | ||||
| 	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 | ||||
| 
 | ||||
| 	json_get_vars init_epsbearer | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue