mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-03 01:33:14 +00:00
Updated ctapdriver to use the forked system call
This commit is contained in:
parent
04a2f46f51
commit
f1f60f281f
@ -174,7 +174,7 @@ void FASTCALL CTapDriver::Cleanup()
|
|||||||
BOOL FASTCALL CTapDriver::Enable(){
|
BOOL FASTCALL CTapDriver::Enable(){
|
||||||
int result;
|
int result;
|
||||||
LOGDEBUG("%s: ip link set ras0 up", __PRETTY_FUNCTION__);
|
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);
|
return (result == EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -186,7 +186,7 @@ BOOL FASTCALL CTapDriver::Enable(){
|
|||||||
BOOL FASTCALL CTapDriver::Disable(){
|
BOOL FASTCALL CTapDriver::Disable(){
|
||||||
int result;
|
int result;
|
||||||
LOGDEBUG("%s: ip link set ras0 down", __PRETTY_FUNCTION__);
|
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);
|
return (result == EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user