[Bro] &expire_function Index data type on multi-index table

Dave Crawford bro at pingtrip.com
Sun Jun 4 08:47:54 PDT 2017

With the following table:

test_expire_table: table[string, addr] of set[string] &write_expire=5sec &expire_func=test_expire_func

What is the data type for the index variable when the expire function is called?

function test_expire_func(t: table[string, addr] of set[string], idx: ???): interval

If I set the idx type to any or string then print idx:


But trying to use it as an index produces an error:

print t[idx];
not an index type (t[idx])

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

More information about the Bro mailing list