[Zeek-Dev] Zeek and the myricom package plugin

Michael Dopheide dopheide at es.net
Fri Jul 12 15:45:40 PDT 2019


Background:  We like to run 'master', but with the name change it broke too
many things and we had to stick to 2.6.2 for the time being.  Since then,
I've started trying to convert our ansible scripts and prepare to make the
jump.  Today I discovered the bro-myricom package would fail to build.

Has anyone attempted this yet?  I can get it to build with a couple minor
changes:

 src/Myricom.cc
<https://github.com/dopheide-esnet/zeek-myricom/commit/6e348389c4baa8a84b5657fefb4fc7b3dcdcf3bf#diff-218a2fe5a883051dbe028818da882eee>

@@ -1,4 +1,4 @@
#include "bro-config.h"
#include "zeek-config.h"

 tests/Scripts/get-bro-env
<https://github.com/dopheide-esnet/zeek-myricom/commit/3792461a35ec82c16efb6330cbf47f356317880c#diff-a4ddd0a8408a88cfa2a4ce426baff951>

<https://github.com/dopheide-esnet/zeek-myricom/commit/3792461a35ec82c16efb6330cbf47f356317880c#diff-a4ddd0a8408a88cfa2a4ce426baff951>
@@
-8,7 +8,7 @@ bro=`cat ${base}/../../build/CMakeCache.txt | grep BRO_DIST |
cut -d = -f 2`
if [ "$1" = "brobase" ]; then
echo ${bro}
elif [ "$1" = "bropath" ]; then
${bro}/build/bro-path-dev
${bro}/build/zeek-path-dev

(These are part of https://github.com/dopheide-esnet/zeek-myricom)

Unfortunately, we end up with another problem:
zeek -N
internal error in /home/zeek/zeek-myricom/build/scripts/./init.bro, line
37: bad reference count [0]

Line 37 is just SNF_RSS_IP:
        const snf_rss_mode: set[RssField] = {
                SNF_RSS_IP,
                SNF_RSS_SRC_PORT,
                SNF_RSS_DST_PORT
        } &redef;

Clearly I'm not gonna get lucky with an easy fix.  Doing a simple
search/replace for bro/zeek across the whole tree doesn't seem viable as
things like bro-bif.h haven't changed names.  Has anyone started digging
into how plugin packages will need to be updated?

Thanks,
-Dop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.icsi.berkeley.edu/pipermail/zeek-dev/attachments/20190712/b50e5386/attachment-0001.html 


More information about the zeek-dev mailing list