[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 13:31:58 PDT 2011
#660: Initializing a table with a record as an index does not work
--------------------+---------------------
Reporter: amannb | Type: Problem
Status: new | Priority: Normal
Milestone: | Component: Bro
Version: | Keywords:
--------------------+---------------------
The following code
{{{
type irecord: record {
resp_h: addr;
};
global my_table: table[irecord] of int = {
[[$resp_h=1.2.3.4]] = 12,
};
}}}
results in an error:
{{{
error in ./bug2.bro, line 7: illegal initializer ([[$resp_h=1.2.3.4]] =
12)
}}}
It probably should return an initialized table.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/660>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list