mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +03:00
Cedar: custom TAP interface name support for FreeBSD, function refactor
The maximum number of TAP devices to iterate through has been increased from 16 to 512.
This commit is contained in:
1 parent
e0598d747a
commit
37ced5c479
2 files changed
+45
-51
No files matched your search
+6
-12
@@ -744,20 +744,14 @@
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef UNIX_BSD
|
||||
#define TAP_FILENAME_1 "/dev/net/tun"
|
||||
#define TAP_FILENAME_2 "/dev/tun"
|
||||
#ifdef UNIX_BSD
|
||||
#ifdef NO_VLAN
|
||||
#define TAP_BSD_FILENAME "/dev/tap0"
|
||||
#else // NO_VLAN
|
||||
#define TAP_BSD_FILENAME "tap"
|
||||
#endif // NO_VLAN
|
||||
#define TAP_BSD_DIR "/dev/"
|
||||
#define TAP_BSD_NUMBER (16)
|
||||
#endif // UNIX_MACOS
|
||||
|
||||
|
||||
|
||||
#else // UNIX_BSD
|
||||
#define TAP_NAME "tap"
|
||||
#define TAP_DIR "/dev/"
|
||||
#define TAP_MAX (512)
|
||||
#endif // UNIX_BSD
|
||||
|
||||
|
||||
#define LICENSE_EDITION_VPN3_NO_LICENSE 0 // Without license
|
||||
|
||||
Reference in new issue
Block a user