[Bro] Question About Namespaces
Johanna Amann
johanna at icir.org
Fri Jun 3 10:56:11 PDT 2016
Hi Arash,
it will always be changed for all scripts.
As for redef enum - it actually is also necessary for record types (you
will find a lot of "redef record" in Bro scripts. However, it would
probably be possible to get rid of those as the parser should, in
theory, be able to determine the type by itself. I did not write that
code, but I think it is just a Bro syntax quirk that might also make
writing parsing a bit easier.
Johanna
On 3 Jun 2016, at 10:20, Arash Fallah wrote:
> If I put the following code inside the export section, would I be
> changing
> the separator for all subsequently loaded scripts as well?
>
> ex.
>
> export{
>
> redef InputAscii::separator = ",";
>
> }
>
>
> Whereas if I put it outside the export block, would it only be changed
> for
> my script and not apply to another?
>
> export{
>
> #foo here
>
> }
>
> redef InputAscii::separator = ",";
>
> Additionally, when you are redefining variables, why is it that redef
> enum
> is necessary when redefining an enumerable type whereas no other
> variable
> requires the type to be explicitly stated for the redefinition (i.e.
> strings as above).
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
More information about the Bro
mailing list