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:
Test, 1.2.3.4
But trying to use it as an index produces an error:
print t[idx];
not an index type (t[idx])
Thanks,
-Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20170604/840849d6/attachment.html