[Bro-Dev] #968: Add bytestring_to_uint16, uint32, uint64 functions

Bro Tracker bro at tracker.bro.org
Mon Mar 18 11:03:00 PDT 2013


#968: Add bytestring_to_uint16, uint32, uint64 functions
--------------------+------------------------
  Reporter:  yun    |      Owner:
      Type:  Patch  |     Status:  new
  Priority:  Low    |  Milestone:  Bro2.2
 Component:  Bro    |    Version:  git/master
Resolution:         |   Keywords:  bytestring
--------------------+------------------------

Comment (by seth):

 > Maybe we can model it after the struct.unpack() like in Python? It uses
 > the first parameter that indicates what datatype you are actually
 > unpacking.

 You should be doing very minimal data structure parsing in script land.
 What's the use case that's driving you to do so much parsing in Bro
 scripts?

-- 
Ticket URL: <http://tracker.bro.org/bro/ticket/968#comment:8>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list