[Bro-Dev] script loading changes

Seth Hall seth at icir.org
Wed Jul 13 20:14:20 PDT 2011

On Jul 13, 2011, at 10:37 PM, Jonathan Siwek wrote:

> It seems like that approach is well-intended at making packages appear
> more modular, but weren't the solutions we came up with taking away 
> from a user's ability to control what scripts get loaded?
> For example, what if a user wants the ssh package's software-related
> scripts to load, but not the http package's software-related scripts?

Yep, agreed on both counts.  I had kind of identified the "globally enabled functionality" problem myself internally, but was reluctant to admit it to myself because in the case of the software scripts it should cause very little overhead.  It does cry out for a more generic solution though that leaves control in the users hands.

> Dependency injection patterns are more for object-oriented languages, no?

Yeah, I think you're right. :)

>> but perhaps we're still a bit early on in the
>> modularization of Bro scripts for us to figure out how to do this
>> well. If everyone's onboard we can just table this discussion for now
> Yeah, we might wait.  I'm not fully convinced that the way you currently
> organized things actually has a modularity problem that significantly
> hinders a user's ability to use bro.

At least we're slowly getting somewhere and sometimes by choosing *not* to do things. :)


Seth Hall
International Computer Science Institute
(Bro) because everyone has a network

More information about the bro-dev mailing list