diff options
author | Chen Minqiang <ptpt52@gmail.com> | 2024-01-22 22:59:18 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2024-04-17 12:34:27 +0800 |
commit | 01e8d822e89266696420ab5ec64360ff1ac1fee8 (patch) | |
tree | 5522d8def9fde66f0171c663685f53a5c91a6de2 | |
parent | 9f6a28b91e30de9c6875afbe1493934218dbfb49 (diff) |
ncm: add sourcefilter option support
This make source based IPv6 routing option available for ncm
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
-rw-r--r-- | package/network/utils/comgt/files/ncm.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/network/utils/comgt/files/ncm.sh b/package/network/utils/comgt/files/ncm.sh index dec058712d..4c829fa930 100644 --- a/package/network/utils/comgt/files/ncm.sh +++ b/package/network/utils/comgt/files/ncm.sh @@ -19,6 +19,7 @@ proto_ncm_init_config() { proto_config_add_string delay proto_config_add_string mode proto_config_add_string pdptype + proto_config_add_boolean sourcefilter proto_config_add_int profile proto_config_add_defaults } @@ -29,7 +30,7 @@ proto_ncm_setup() { local manufacturer initialize setmode connect finalize devname devpath ifpath local device ifname apn auth username password pincode delay mode pdptype profile $PROTO_DEFAULT_OPTIONS - json_get_vars device ifname apn auth username password pincode delay mode pdptype profile $PROTO_DEFAULT_OPTIONS + json_get_vars device ifname apn auth username password pincode delay mode pdptype sourcefilter profile $PROTO_DEFAULT_OPTIONS local context_type @@ -202,6 +203,7 @@ proto_ncm_setup() { json_add_string ifname "@$interface" json_add_string proto "dhcpv6" json_add_string extendprefix 1 + [ "$sourcefilter" = "0" ] && json_add_boolean sourcefilter "0" proto_add_dynamic_defaults [ -n "$zone" ] && { json_add_string zone "$zone" |