[Bro-Dev] #374: Add type testing operator

Bro Tracker bro at tracker.icir.org
Thu Feb 3 14:05:02 PST 2011

#374: Add type testing operator
  Reporter:  seth             |      Owner:
      Type:  Feature Request  |     Status:  new
  Priority:  Normal           |  Milestone:  Bro1.6
 Component:  Bro              |    Version:
Resolution:                   |   Keywords:  logging

Comment (by seth):

 > How about instead using `rec$<conn_id>cid`.
 > With the '?', it would look quite similar to the '?$' operator for
 > optional fields, which however returns a boolean.

 Oh, good point.  I wanted that similarity to the '?$' operator, but I
 didn't consider the difference in what's returned.  The question we
 haven't asked yet I don't think is what happens in the case that cid is
 not of type conn_id?  Is that something that would be tested for
 statically to make sure that the type is tested as that type (with an if
 statement) before it's accessed at runtime?

Ticket URL: <http://tracker.icir.org/bro/ticket/374#comment:3>
Bro Tracker <http://tracker.icir.org/bro>
Bro Issue Tracker

More information about the bro-dev mailing list