[Bugfix][T106BUG-520]Fix the problem of not being able to ping ipv4 addresses
Only Configure: No
Affected branch: master
Affected module: data
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: Ib6595de035f92b59723b0119b47d05996f3899a7
diff --git a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
index 0785d98..818649d 100755
--- a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
+++ b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
@@ -1814,7 +1814,10 @@
//sprintf(cmd, "/sbin/wan_ipv4.sh \"linkup\" \"pswan\" \"%d\"", actinfo->c_id);
sprintf(cmd, "/sbin/wan_ipv4.sh linkup pswan %d", actinfo->c_id);
//zxic_system(cmd);
- fpv4 = popen(cmd, "r");
+ //xf.li@20240314 modify for T106BUG-520 start
+ //fpv4 = popen(cmd, "r");
+ system_cmd_ex(cmd);
+ //xf.li@20240314 modify for T106BUG-520 end
}
if (actinfo->act_info.ip46flag == V6_VALID || actinfo->act_info.ip46flag == V46_VALID) {
@@ -1831,12 +1834,17 @@
//sprintf(cmd, "/sbin/wan_ipv6.sh \"linkup\" \"pswan\" \"%d\"", actinfo->c_id);
sprintf(cmd, "/sbin/wan_ipv6.sh linkup pswan %d", actinfo->c_id);
//zxic_system(cmd);
- fpv6 = popen(cmd, "r");
+ //xf.li@20240314 modify for T106BUG-520 start
+ //fpv6 = popen(cmd, "r");
+ system_cmd_ex(cmd);
+ //xf.li@20240314 modify for T106BUG-520 end
}
- if(fpv4 != NULL)
+ //xf.li@20240314 modify for T106BUG-520 start
+ /*if(fpv4 != NULL)
pclose(fpv4);
if(fpv6 != NULL)
- pclose(fpv6);
+ pclose(fpv6);*/
+ //xf.li@20240314 modify for T106BUG-520 end
return 1;
}