Merge "Revert "[Bugfix][T106BUG-520]Fix the problem of not being able to ping ipv4 addresses""
diff --git a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
index 8ec3e52..f7c0954 100755
--- a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
+++ b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
@@ -1812,10 +1812,7 @@
//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);
- //xf.li@20240314 modify for T106BUG-520 start
- //fpv4 = popen(cmd, "r");
- system_cmd_ex(cmd);
- //xf.li@20240314 modify for T106BUG-520 end
+ fpv4 = popen(cmd, "r");
}
if (actinfo->act_info.ip46flag == V6_VALID || actinfo->act_info.ip46flag == V46_VALID) {
@@ -1832,17 +1829,12 @@
//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);
- //xf.li@20240314 modify for T106BUG-520 start
- //fpv6 = popen(cmd, "r");
- system_cmd_ex(cmd);
- //xf.li@20240314 modify for T106BUG-520 end
+ fpv6 = popen(cmd, "r");
}
- //xf.li@20240314 modify for T106BUG-520 start
- /*if(fpv4 != NULL)
+ if(fpv4 != NULL)
pclose(fpv4);
if(fpv6 != NULL)
- pclose(fpv6);*/
- //xf.li@20240314 modify for T106BUG-520 end
+ pclose(fpv6);
return 1;
}