[Bro] howto append a subnet addr to a set via cmd line...

Mike Wood muscletot at gmail.com
Wed May 23 16:27:15 PDT 2007


I would like to have in myscript.bro

   const SOMENETS : set[subnet] &redef;

and then run

   bro 'SOMENETS += 1.2.3.0/8' myscript.bro

but I get an error

   <params>, line 1 (1.2.3.0/8): error, bad initializer

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

Thanks,
Mike



More information about the Bro mailing list