[Bro] true global functions/tables/variables

Christoph Göldi goeldich at ee.ethz.ch
Thu Feb 3 09:22:17 PST 2005


Hi

sorry, your right. i messed up with the @load commands.
i didn't realize that the order of loading files and defining
functions is important.

thanx
christoph


--On Donnerstag, 3. Februar 2005 15:57 +0000 Christian Kreibich
<christian at whoop.org> wrote:

> Hi Christoph,
> 
> I'm far from a Bro language guru but I don't think that's true. Just as
> an example, function service_name() is defined in conn.bro but used in
> conn.bro and login.bro. Are you @load'ing things correctly? I hope I'm
> not just missing your point ...
> 
> On Thu, 2005-02-03 at 11:24 +0100, Christoph Goeldi wrote:
>> hi everybody
>> 
>> today i noticed that i can't define functions, tables or variables and 
>> use it different policy files. it only worked, after i placed these 
>> things in the bro.init file.
>> i think it is a drawback if it's impossible to implement a certain 
>> functionality with a bunch of files and use the same functions, tables 
>> etc. in them.
>> if an algorithm is a bit complex you have no chance to implement it with 
>> a nice structure...
>> 
>> thanx for any help or comments
>> christoph
> 
> Cheers,
> Christian.
> -- 
> ________________________________________________________________________
>                                           http://www.cl.cam.ac.uk/~cpk25
>                                                     http://www.whoop.org
> 
> 
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro







More information about the Bro mailing list