[Bro] log_file variable in ftp.bro

Cliff zhangwei at comexgenesys.com
Sun Sep 26 18:38:04 PDT 2004

Hi Christian,
    Very thank you for your detailed explanation. :)
    The concept of "scope" is the same with the "namespace" of C++.


----- Original Message ----- 
From: "Christian Kreibich" <christian at whoop.org>
To: "Bro List" <bro at bro-ids.org>
Sent: Friday, September 24, 2004 5:25 PM
Subject: Re: [Bro] log_file variable in ftp.bro

> On Fri, 2004-09-24 at 02:53, Cliff wrote:
> > Hi Vern/Christian,
> >     Ya,It's Ok to modify the script as what you said.I see that this is the result from "scope" used in ftp.bro.
> >     However,I don't understand that  Why to import the concept of "scope" and "module" such as "module FTP" in ftp.bro and "module HTTP" in http.bro? What advantages has it?
> It's just to have a concept of namespaces -- in a large policy
> configuration there's a good chance that symbol names (for variables,
> functions etc) would collide. The module and export statements allow you
> to control how much pollution you cause in other modules. Also it's much
> nicer if you don't have to think all the time about whether a symbol
> name might already exist in another module.
> Cheers,
> Christian.
> -- 
> ________________________________________________________________________
>                                           http://www.cl.cam.ac.uk/~cpk25
>                                                     http://www.whoop.org
> _______________________________________________
> Bro mailing list
> Bro at ICSI.Berkeley.EDU
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro

More information about the Bro mailing list