bro variable.

Ashley Thomas athomas at unity.ncsu.edu
Sun Mar 31 12:55:42 PST 2002


hi all,

I have added a bro variable in bro.init.
global var = 1 &redef;

--------------------------------------
Also in NetVar

int var;

var = opt_internal_int("var");

--------------------------------------

Now if i change var in the any of the .cc files does the change reflect at
the policy level ?

in any .cc file -> var = 2;

what will be the value in the policy scripts ?

--------------------------------------


**Otherwise is there a way to share a variable between the .cc files and
the policy scripts ?? **


thanks a lot
ashley






More information about the Bro mailing list