[Bro-Dev] #200: broctl update resets/corrupts certain variables

Bro Tracker bro at tracker.bro-ids.org
Sun May 22 21:28:31 PDT 2011


#200: broctl update resets/corrupts certain variables
-----------------------------+---------------------------
  Reporter:  justin          |      Owner:  seth
      Type:  Fastpath        |     Status:  closed
  Priority:  Low             |  Milestone:  Bro1.6
 Component:  BroControl      |    Version:  1.5.2
Resolution:  Solved/Applied  |   Keywords:  broctl update
-----------------------------+---------------------------
Changes (by seth):

 * status:  accepted => closed
 * type:  defect => Fastpath
 * resolution:   => Solved/Applied


Comment:

 There is a fix for this problem in broctl's fastpath branch.  I ended up
 changing the BiF that does the variable updating only work for consts with
 &redef.  Previously it would work for any global (global and const) which
 caused problems with any script that maintains a state table... tables
 indexed by conn_id would be flattened if the table was initialized to an
 empty table when doing update.

 The new scripts are all being written in a way that they will cope
 correctly with this change and most of the old scripts would deal with
 this change just fine (I don't know which ones it breaks), but the current
 behavior breaks almost all scripts at the same time by reinitializing
 globals.

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/200#comment:6>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list