Re: [Bro-Dev] Rules for base/

Siwek, Jon jsiwek at illinois.edu
Thu Feb 7 13:44:02 PST 2013


On 2/7/2013 9:00 AM, Seth Hall wrote:
>
>   * All consts in export sections must be tagged with &redef.
>

Is that actually supposed to be the thing about making options that 
alter script behavior be consts with &redefs as opposed to globals to 
prevent runtime modification?

Because there's places where it makes sense for something to be const 
without &redef.  E.g.:

     module Math; export { const PI = 3.14; }

Scripts in base/protocols (dns/syslog/ssl/modbus/socks) have consts of 
that style.

     Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.icsi.berkeley.edu/pipermail/bro-dev/attachments/20130207/559941d0/attachment.html 


More information about the bro-dev mailing list