mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-25 01:29: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
|
||||
bool UnixVLanSetState(char* name, bool state_up)
|
||||
{
|
||||
#ifdef UNIX_LINUX
|
||||
#if defined(UNIX_LINUX) || defined(UNIX_BSD)
|
||||
UNIX_VLAN_LIST *t, tt;
|
||||
struct ifreq ifr;
|
||||
int s;
|
||||
@ -742,7 +742,7 @@ bool UnixVLanSetState(char* name, bool state_up)
|
||||
close(s);
|
||||
}
|
||||
UnlockList(unix_vlan);
|
||||
#endif // UNIX_LINUX
|
||||
#endif // UNIX_LINUX || UNIX_BSD
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user