mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-13 03:04:58 +03:00
Add TAP devices support for FreeBSD and OpenBSD
Thanks to @kennylam777 for the first implementation: https://github.com/kennylam777/SoftEtherVPN/commits/FreeBSD-TAP
This commit is contained in:
@ -746,14 +746,14 @@
|
||||
|
||||
#define TAP_FILENAME_1 "/dev/net/tun"
|
||||
#define TAP_FILENAME_2 "/dev/tun"
|
||||
#ifdef UNIX_MACOS
|
||||
#ifdef UNIX_BSD
|
||||
#ifdef NO_VLAN
|
||||
#define TAP_MACOS_FILENAME "/dev/tap0"
|
||||
#define TAP_BSD_FILENAME "/dev/tap0"
|
||||
#else // NO_VLAN
|
||||
#define TAP_MACOS_FILENAME "tap"
|
||||
#define TAP_BSD_FILENAME "tap"
|
||||
#endif // NO_VLAN
|
||||
#define TAP_MACOS_DIR "/dev/"
|
||||
#define TAP_MACOS_NUMBER (16)
|
||||
#define TAP_BSD_DIR "/dev/"
|
||||
#define TAP_BSD_NUMBER (16)
|
||||
#endif // UNIX_MACOS
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user