[Bro-Dev] #327: Binding attributes to values/variables

Bro Tracker bro at tracker.bro-ids.org
Tue Dec 11 12:03:58 PST 2012


#327: Binding attributes to values/variables
----------------------+------------------------
  Reporter:  robin    |      Owner:
      Type:  Problem  |     Status:  new
  Priority:  Normal   |  Milestone:  Bro2.2
 Component:  Bro      |    Version:  git/master
Resolution:           |   Keywords:
----------------------+------------------------

Comment (by jsiwek):

 In [784adf3f6ba781f0ade427d8f7177c540d8f7100/bro]:
 {{{
 #!CommitTicketReference repository="bro"
 revision="784adf3f6ba781f0ade427d8f7177c540d8f7100"
 Fixes to attribute propagation issues for variables and types.

 - A type declarations w/ attributes will propogate them to local
   and global variable declarations that use the type.  Addresses #248.

 - A local or global variable declared with attributes will propogate
   them values that are later assigned to it.  Addresses #151, #67, #474.

 Addresses #327 in that it should be a more consistent approach to
 attribute propagation than before: the rules are that they can migrate
 in one direction: type -> variable -> value.   It also clears up the
 most common usage issue: the expectation that attributes in a local or
 global variable declaration apply to the identifier in that declaration
 such that later values assigned to it are subjected to those attributes.
 }}}

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



More information about the bro-dev mailing list