[Bro-Dev] #375: Extending record type fields

Bro Tracker bro at tracker.icir.org
Fri Jan 28 11:20:01 PST 2011


#375: Extending record type fields
-----------------------------+--------------------
 Reporter:  seth             |      Owner:
     Type:  Feature Request  |     Status:  new
 Priority:  Normal           |  Milestone:  Bro1.6
Component:  Bro              |    Version:
 Keywords:  logging          |
-----------------------------+--------------------
 One proposal for giving users the ability to add their own fields to the
 record type used for logging to a particular stream in the new logging
 framework involves redef-ing the record type to add new fields.  Example
 syntax:

 {{{
 module SSH;
 type Log = record {
     client: string;
     server: string;
 }

 redef type SSH::Log += {
     id: conn_id &optional;
 };
 }}}

 I'm even thinking that fields added in redefs could even be mandatory or
 implicitly &optional to avoid causing errors with shipped scripts.

-- 
Ticket URL: <http://tracker.icir.org/bro/ticket/375>
Bro Tracker <http://tracker.icir.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list