[Bro-Dev] #464: Bug with complex data structures

Bro Tracker bro at tracker.bro-ids.org
Tue May 31 11:50:37 PDT 2011


#464: Bug with complex data structures
---------------------+--------------------
 Reporter:  seth     |      Owner:
     Type:  Problem  |     Status:  new
 Priority:  High     |  Milestone:  Bro1.6
Component:  Bro      |    Version:
 Keywords:           |
---------------------+--------------------
 This script:

 {{{
 type MetaData: record {
         a: count;
         tags: set[string];
 };

 global ip_data: table[addr] of set[MetaData] = table();

 local m: MetaData = [$a=4, $tags=set("blah")];
 if ( 1.2.3.4 !in ip_data )
         ip_data[1.2.3.4] = set(m);
 else
         add ip_data[1.2.3.4][m];
 }}}

 Results in this error:

 {{{
 1306867820.149493 <no location> and ./test29.bro, line 10
    ([a=4, tags={blah}] and list of record { a:count; tags:set[string]; }):
 error, index type doesn't match table
 }}}

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/464>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list