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:
Robin Sommer 2016-08-01 08:59:51 -07:00
parent 19d66be0aa
commit 420bef58aa
11 changed files with 29 additions and 27 deletions

View file

@ -11,7 +11,7 @@
#include "Net.h"
#include "Sessions.h"
#include "pcap/const.bif.h"
#include "pcap/pcap.bif.h"
using namespace iosource;

View file

@ -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()

View file

@ -7,7 +7,7 @@
#include "../PktSrc.h"
#include "../../Net.h"
#include "const.bif.h"
#include "pcap.bif.h"
using namespace iosource::pcap;

View file

@ -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>

View file

@ -1,4 +0,0 @@
const Pcap::snaplen: count;
const Pcap::bufsize: count;

View file

@ -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.