[Bro-Dev] Bro policy script: vector
Gregor Maier
gregor at icir.org
Thu Feb 17 11:56:58 PST 2011
Hi,
I was wondering how I can use vectors in Bro policy script.
* How can I add/delete elements?
* Where can I add/delete elements (at the beginning? at the end? both)
(i.e., can it be used as stack and/or FIFO)
* How can I iterate over the vector?
* Can I insert elements at arbitrary positions? Delete at arbitrary
positions?
(there don't seem be too many places in the default scripts were vectors
are used and it seems that most are used as consts).
I think I've also seen places where "table[count] of XYZ" is used
instead of a vector.
cu
Gregor
--
Gregor Maier
<gregor at icir.org> <gregor at icsi.berkeley.edu>
Int. Computer Science Institute (ICSI)
1947 Center St., Ste. 600
Berkeley, CA 94704, USA
http://www.icir.org/gregor/
More information about the bro-dev
mailing list