libpcap: enable remote capture support

This commit is contained in:
coolsnowwolf 2022-11-13 20:09:51 +08:00
parent 1770fdd319
commit 27ed0acf3b
2 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2006-2013 OpenWrt.org
# Copyright (C) 2006-2022 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.

View File

@ -0,0 +1,19 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -200,15 +200,7 @@ option(NO_PROTOCHAIN "Disable protochain
#
set(PCAP_TYPE "" CACHE STRING "Packet capture type")
-#
-# Default to having remote capture support on Windows and, for now, to
-# not having it on UN*X.
-#
-if(WIN32)
- option(ENABLE_REMOTE "Enable remote capture" ON)
-else()
- option(ENABLE_REMOTE "Enable remote capture" OFF)
-endif(WIN32)
+option(ENABLE_REMOTE "Enable remote capture" ON)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
option(BUILD_WITH_LIBNL "Build with libnl" ON)