howto append a subnet addr to a set via cmd line...

I would like to have in myscript.bro

   const SOMENETS : set[subnet] &redef;

and then run

   bro 'SOMENETS +=' myscript.bro

but I get an error

   <params>, line 1 ( error, bad initializer

Any chance this will work w/ slightly different syntax on the cmd line...?


   bro 'SOMENETS +=' myscript.bro

+= doesn't support additions to sets. Instead use:

  bro -e 'add SOMENETS[]' myscript.bro

- Vern