mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-08 00:34:57 +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:
@ -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