Updated ctapdriver to use the forked system call

This commit is contained in:
Tony Kuker 2021-01-30 14:07:40 -06:00
parent 04a2f46f51
commit f1f60f281f

View File

@ -174,7 +174,7 @@ void FASTCALL CTapDriver::Cleanup()
BOOL FASTCALL CTapDriver::Enable(){
int result;
LOGDEBUG("%s: ip link set ras0 up", __PRETTY_FUNCTION__);
result = system("ip link set ras0 up");
result = run_system_cmd("ip link set ras0 up");
return (result == EXIT_SUCCESS);
}
@ -186,7 +186,7 @@ BOOL FASTCALL CTapDriver::Enable(){
BOOL FASTCALL CTapDriver::Disable(){
int result;
LOGDEBUG("%s: ip link set ras0 down", __PRETTY_FUNCTION__);
result = system("ip link set ras0 down");
result = run_system_cmd("ip link set ras0 down");
return (result == EXIT_SUCCESS);
}