24 lines
668 B
Plaintext
24 lines
668 B
Plaintext
$OpenBSD: patch-src_iosource_BPF_Program_cc,v 1.3 2020/02/28 16:48:59 ajacoutot Exp $
|
|
|
|
error: use of undeclared identifier 'DLT_NFLOG'
|
|
|
|
Index: src/iosource/BPF_Program.cc
|
|
--- src/iosource/BPF_Program.cc.orig
|
|
+++ src/iosource/BPF_Program.cc
|
|
@@ -105,6 +105,7 @@ bool BPF_Program::Compile(int snaplen, int linktype, c
|
|
{
|
|
FreeCode();
|
|
|
|
+#ifndef __OpenBSD__
|
|
if ( linktype == DLT_NFLOG )
|
|
{
|
|
// No-op, NFLOG does not support BPF filters.
|
|
@@ -115,6 +116,7 @@ bool BPF_Program::Compile(int snaplen, int linktype, c
|
|
m_matches_anything = true;
|
|
return true;
|
|
}
|
|
+#endif
|
|
|
|
#ifdef LIBPCAP_PCAP_COMPILE_NOPCAP_HAS_ERROR_PARAMETER
|
|
char my_error[PCAP_ERRBUF_SIZE];
|