> Does bro allow to change Global var from inside a function somehow ?
You certainly can assign to it (unless it's "const"). But initialization
is only done outside of functions.
Vern
Thanks.
Does bro allow to change Global var from inside a function somehow ?
>From: Vern Paxson <vern(a)ee.lbl.gov>
>To: "kerberos kkk" <kerberos_007(a)hotmail.com>
>CC: bro(a)lbl.gov
>Subject: Re: redef
>Date: Thu, 08 Mar 2001 09:23:16 PST
>
> > Can we do a redef of a variable in side an event ?
> > I am getting a parse error when i do this.
> > whereas outside the event/fucntion i am able to do the redef.
>
>redef is a global declaration. It's used to override run-time
>initializations, so it wouldn't make much sense as a declaration
>local to a procedure.
>
> Vern
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
> Can we do a redef of a variable in side an event ?
> I am getting a parse error when i do this.
> whereas outside the event/fucntion i am able to do the redef.
redef is a global declaration. It's used to override run-time
initializations, so it wouldn't make much sense as a declaration
local to a procedure.
Vern
> I'm getting this run-time error:
>
> <some time> rune-time error: attempt to match to a malformed regular
> expression.
>
> The problem is that I don't know where it occurs. (in which event, ...)
> Do I get this message when trying to write to a file a empty string returned
> by Bro?
> Is there a way to get more precise error message? To be able to correct my
> script.
As usual, when reporting a problem like this, please include your script(s)
so it can be reproduced.
Vern
hi,
Can we do a redef of a variable in side an event ?
I am getting a parse error when i do this.
whereas outside the event/fucntion i am able to do the redef.
Thanks for all the help
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Hi,
I'm getting this run-time error:
<some time> rune-time error: attempt to match to a malformed regular
expression.
The problem is that I don't know where it occurs. (in which event, ...)
Do I get this message when trying to write to a file a empty string returned
by Bro?
Is there a way to get more precise error message? To be able to correct my
script.
Thanks
Magnus Anderssen
> I need to flush my log files. I have experienced Bro not flushing
> the files when being stop (Control C). I've read in the manual that there
> was
> a flush_all() function and I tried to use it but it does not work
> (unrecognized
> variable). Does it need some special setting to work.
>
> I'm using Bro version 0.6.
flush_all() was added with Bro 0.7, available as a prerelease from
ftp://ftp.ee.lbl.gov/.vp-bro-pub-0.7a48.tar.gz
Note that HUP'ing Bro 0.7 will by default cause flush_all() to be invoked.
Vern
Hi,
I need to flush my log files. I have experienced Bro not flushing
the files when being stop (Control C). I've read in the manual that there
was
a flush_all() function and I tried to use it but it does not work
(unrecognized
variable). Does it need some special setting to work.
I'm using Bro version 0.6.
Thanks in advance for the futur help.
Magnus Anderssen