[Bro] Assinging a string to a variable
Jaya Dhanesh
dhanesh at tataelxsi.co.in
Thu Feb 8 03:53:22 PST 2007
Hi All,
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.
I also tried using sub_bytes. I got the following error.
1170987410.223443 /root/bro-devel/dhanesh/site/dhanbro.bro, line 293 (act =
sub_bytes(SAFE, 0, len)): error, illegal assignment in initialization.
Can anyone suggest a method for assigning strings to a variable.
Thanks,
Dhanesh.
More information about the Bro
mailing list