diff --git a/package/libs/libpcap/Makefile b/package/libs/libpcap/Makefile index 1abf0ac8f..ca2203411 100644 --- a/package/libs/libpcap/Makefile +++ b/package/libs/libpcap/Makefile @@ -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. diff --git a/package/libs/libpcap/patches/210-add-rpcapd-in-linux-support.patch b/package/libs/libpcap/patches/210-add-rpcapd-in-linux-support.patch new file mode 100644 index 000000000..91b77aaf3 --- /dev/null +++ b/package/libs/libpcap/patches/210-add-rpcapd-in-linux-support.patch @@ -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)