mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Cedar/VLanUnix: Enable UnixVLanSetState on FreeBSD
This commit is contained in:
parent
8482a52522
commit
0ba7ad392e
@ -696,7 +696,7 @@ bool UnixVLanCreate(char *name, UCHAR *mac_address, bool create_up)
|
|||||||
// Set a VLAN up/down
|
// Set a VLAN up/down
|
||||||
bool UnixVLanSetState(char* name, bool state_up)
|
bool UnixVLanSetState(char* name, bool state_up)
|
||||||
{
|
{
|
||||||
#ifdef UNIX_LINUX
|
#if defined(UNIX_LINUX) || defined(UNIX_BSD)
|
||||||
UNIX_VLAN_LIST *t, tt;
|
UNIX_VLAN_LIST *t, tt;
|
||||||
struct ifreq ifr;
|
struct ifreq ifr;
|
||||||
int s;
|
int s;
|
||||||
@ -742,7 +742,7 @@ bool UnixVLanSetState(char* name, bool state_up)
|
|||||||
close(s);
|
close(s);
|
||||||
}
|
}
|
||||||
UnlockList(unix_vlan);
|
UnlockList(unix_vlan);
|
||||||
#endif // UNIX_LINUX
|
#endif // UNIX_LINUX || UNIX_BSD
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user