[Bro] table of record type

Kellogg, Brian D (OLN) bkellogg at dresser-rand.com
Thu Dec 26 08:26:23 PST 2013

type host_type: record {
bytes: int;
stime: time;

type hostTable: table[addr] of host_type;

global hosts: hostTable;

I've create the above structure, but I haven't a clue on the syntax to dynamically populate it.  I've tried the below with no success.

hosts[c$id$orig_h] = [[$bytes=0, $stime=network_time()]];

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20131226/dedacb2a/attachment.html 

More information about the Bro mailing list