[Bro] Changing an internal variable from C code

Ruoming Pang rpang at cs.princeton.edu
Fri Dec 8 08:20:06 PST 2006


Please take a look at NetVar.{h,cc} as a starting point. That's where
"internal variables" are defined.

By the way, which is the variable you want to manipulate in C++ code?


On 12/8/06, Yuppie <yuppie4ever at gmail.com> wrote:
> Hi,
> I wanted to change an internal variable from the C code. I have defined
> a variable in a .bro file as
> global my_count: count;
> At some later point in the C code, I want to change it:
> Val *my_count = internal_val("my_count");
> // change the value of my_count to something else
> I am at loss on how to accomplish this. Can the Bro gurus help me out?
> thanks
> -vish
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro

More information about the Bro mailing list