[Bro] defining a table of sets

Stephen Smith ssmit7 at gmail.com
Mon Nov 10 05:22:24 PST 2008


Hello,

I'm trying to use a table of sets in my policy, and can't figure out how to
statically define values. The manual covers use of the add() function, but

Scan.bro

global distinct_peers: table[addr] of set[addr]




redef SMITH::table_of_sets = {
       [ "a" ] = [ "alpha", "anchor", "armor" ],
       [ "b" ] = [ "bravo", "biscuit", "blue" ],
};


smith.bro, line 150 (alpha, anchor, armor): bad tag in Val::CONVERTER
(types/table)



redef SMITH::table_of_sets = {
       [ "a" ] = { "alpha", "anchor", "armor" },
       [ "b" ] = { "bravo", "biscuit", "blue" },
};

smith.bro, line 149: error: syntax error, at or near "{"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20081110/cb06037b/attachment.html 


More information about the Bro mailing list