[Bro] Using for loop w/ &expire_func

Liburdi, Josh (GE Corporate) josh.liburdi at ge.com
Mon Apr 28 06:40:11 PDT 2014


Nevermind‹ I mistakenly had my table in the export section of the script.
Moving it fixed my problem.

- Josh

From:  Josh Liburdi <liburdi.joshua at gmail.com>
Date:  Saturday, April 26, 2014 at 12:28 PM
To:  bro <bro at bro.org>
Subject:  [Bro] Using for loop w/ &expire_func

I'm having a problem iterating over a table in an &expire_func function. I
receive this error: "value used but not set (t)"

When using this function with my table...

&expire_func=function(t: table[string] of set[string,string,addr], idx:
string): interval
          {     
          for ( [x,y,z] in t[idx] )
            {
            print x;
            }
          return 0secs;
          };

Iterating over the table works with events, but I'd like to process indexes
as they are removed from the table. Has anyone run into this before or know
what might be causing the error?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20140428/969cf53b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4424 bytes
Desc: not available
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20140428/969cf53b/attachment.bin 


More information about the Bro mailing list