[Bro-Dev] #918: topic/jsiwek/hook

Bro Tracker bro at tracker.bro-ids.org
Mon Nov 26 15:10:22 PST 2012


#918: topic/jsiwek/hook
---------------------+------------------------
  Reporter:  jsiwek  |      Owner:  jsiwek
      Type:  Task    |     Status:  assigned
  Priority:  Normal  |  Milestone:  Bro2.2
 Component:  Bro     |    Version:  git/master
Resolution:          |   Keywords:
---------------------+------------------------

Comment (by jsiwek):

 In [378ee699ffc058f368a06691e4237c7f1e791462/bro]:
 {{{
 #!CommitTicketReference repository="bro"
 revision="378ee699ffc058f368a06691e4237c7f1e791462"
 Hook functions now directly callable instead of w/ "hook" statements.

 The return value of the call is an implicit boolean value of T if all
 hook handlers ran, or F if one hook handler exited as a result of a
 break statement and potentially prevented other handlers from running.

 Scripts don't need to declare hooks with an explicit return type of bool
 (internally, that's assumed), and any values given to (optional) return
 statements in handler definitions are just ignored.

 Addresses #918.
 }}}

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



More information about the bro-dev mailing list