mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Fixing a CMake dependency issue for the pcap bifs.
ninja said: ninja: warning: multiple rules generate scripts/base/bif/const.bif.bro. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn] Looks like there's a larger problem here involving *.bif of the same name at different locations of the source tree. For now, I'ved fixed this one by merging src/iosource/pcap/{const,functions}.bif into pcap.bif.
This commit is contained in:
parent
19d66be0aa
commit
420bef58aa
11 changed files with 29 additions and 27 deletions
|
@ -11,7 +11,7 @@
|
|||
#include "Net.h"
|
||||
#include "Sessions.h"
|
||||
|
||||
#include "pcap/const.bif.h"
|
||||
#include "pcap/pcap.bif.h"
|
||||
|
||||
using namespace iosource;
|
||||
|
||||
|
|
|
@ -5,6 +5,5 @@ include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DI
|
|||
|
||||
bro_plugin_begin(Bro Pcap)
|
||||
bro_plugin_cc(Source.cc Dumper.cc Plugin.cc)
|
||||
bif_target(functions.bif)
|
||||
bif_target(const.bif)
|
||||
bif_target(pcap.bif)
|
||||
bro_plugin_end()
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "../PktSrc.h"
|
||||
#include "../../Net.h"
|
||||
|
||||
#include "const.bif.h"
|
||||
#include "pcap.bif.h"
|
||||
|
||||
using namespace iosource::pcap;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include "Source.h"
|
||||
#include "iosource/Packet.h"
|
||||
|
||||
#include "const.bif.h"
|
||||
#include "pcap.bif.h"
|
||||
|
||||
#ifdef HAVE_PCAP_INT_H
|
||||
#include <pcap-int.h>
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
|
||||
|
||||
const Pcap::snaplen: count;
|
||||
const Pcap::bufsize: count;
|
|
@ -1,6 +1,9 @@
|
|||
|
||||
module Pcap;
|
||||
|
||||
const snaplen: count;
|
||||
const bufsize: count;
|
||||
|
||||
## Precompiles a PCAP filter and binds it to a given identifier.
|
||||
##
|
||||
## id: The PCAP identifier to reference the filter *s* later on.
|
Loading…
Add table
Add a link
Reference in a new issue