mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +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:
1 parent
0e5d432ae4
commit
3ff5c061d7
5 files changed
+73
-28
No files matched your search
+3
-3
@@ -50,13 +50,13 @@ if(UNIX)
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
add_definitions(-DUNIX_BSD -DBRIDGE_BPF -DNO_VLAN)
|
||||
add_definitions(-DUNIX_BSD -DBRIDGE_BPF)
|
||||
include_directories(SYSTEM /usr/local/include)
|
||||
link_directories(SYSTEM /usr/local/lib)
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||
add_definitions(-DUNIX_BSD -DNO_VLAN)
|
||||
add_definitions(-DUNIX_BSD -DUNIX_OPENBSD)
|
||||
include_directories(SYSTEM /usr/local/include)
|
||||
link_directories(SYSTEM /usr/local/lib)
|
||||
endif()
|
||||
@@ -66,7 +66,7 @@ if(UNIX)
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||||
add_definitions(-DUNIX_MACOS -DBRIDGE_PCAP)
|
||||
add_definitions(-DUNIX_BSD -DUNIX_MACOS -DBRIDGE_PCAP)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in new issue
Block a user