[Bro-Dev] #660: Initializing a table with a record as an index does not work

Bro Tracker bro at tracker.bro-ids.org
Wed Nov 2 14:15:04 PDT 2011


#660: Initializing a table with a record as an index does not work
----------------------+-----------------
  Reporter:  amannb   |      Owner:
      Type:  Problem  |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  Bro      |    Version:
Resolution:           |   Keywords:
----------------------+-----------------

Comment (by seth):

 > global my_table: table[irecord] of int = {

 Using a record as an index on a table or set is usually not a good idea.
 Lookups may not happen as you expect if you are using a different record
 instance to index into the table or set since Bro isn't doing value
 equality but actually looking for the same record.

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/660#comment:0>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list