[Bro] Assinging a string to a variable

Vern Paxson vern at icir.org
Thu Feb 8 07:34:46 PST 2007


> I have problems in assigning a string to a variable in the bro file
> (bro-1.1d).
> 
> local act: string;
> if (value == 1) {
> 	act = "SAFE";
> } else {
> 	act = "CHECK";
> }
> 
> The bro stopped when traffic was seen.

If at all possible when posting problems like this to the list, please
include a full script that illustrates the problem (and if you can a trace,
if needed).  The above has a variable "value" that isn't declared, so I
dont know how to try reproducing it.

It also isn't clear what you mean "stopped when traffic was seen".  Do you
mean the Bro process exited/crashed?

		Vern



More information about the Bro mailing list