[Bro-Dev] New script organization

Robin Sommer robin at icir.org
Mon Aug 8 08:25:12 PDT 2011


On Mon, Aug 08, 2011 at 09:46 -0500, you wrote:

> it might not be the same language as the other scripts.  Is there an
> advantage of using the exceptional extension?

It indicates that loading them is hard-coded into the core, there's
nothign the script-level can do about that. But you're right in that
the .init extension can be misleading.

>  Maybe it was originally meant to imply it's an internal script, but
>  now anything in "base/" could almost be considered "internal".

These scripts are still different than the other base/* stuff, which
is loaded from other scripts. I'd like to keep that distinction
somewhow. How about using a prefix, like "init-bare.bro" and
"init-default.bro" instead?

> "bro.init" => "core.bro".

(Let's avoid the term "core", that's already overloaded.)

Robin

-- 
Robin Sommer * Phone +1 (510) 722-6541 * robin at icir.org
ICSI/LBNL    * Fax   +1 (510) 666-2956 *   www.icir.org


More information about the bro-dev mailing list