[Bro-Dev] declaration error: &default function type clash

Jan Grashöfer jan.grashoefer at gmail.com
Thu May 12 07:36:36 PDT 2016

> how do I declare (3) so that I can avoid the "&default function type clash"  error above.

I guess the function for initialization receives the index that should
be initialized. In this case the index consists of two values. I tried
the following and Bro did not complain:

global c_likely_scanner: table[addr,port] of opaque of cardinality
        &default = function(a: addr, p: port): opaque of cardinality {
return hll_cardinality_init(0.1, 0.95); }
        &read_expire=1 day;

Hope that works for you!


More information about the bro-dev mailing list