[Bro] Changing an internal variable from C code

Yuppie yuppie4ever at gmail.com
Fri Dec 8 02:25:17 PST 2006


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?


More information about the Bro mailing list