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

Bro Tracker bro at tracker.bro.org
Tue Mar 19 07:51:04 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):

 > One example that resembles my use case: Parse a specific HTTP header
 > is Base64 encoded and decodes to a specific struct. So decode it,
 > the values that i'm interested in, and log some of the decoded
 > if it's interesting.

 Ah, seems reasonable.  I still think that for now we'd like to stick to
 only one function named bytestring_to_count.  Adding something akin to
 unpack doesn't fit the longer term model we're putting in place and I'd
 like to avoid the various bit length uint functions since in Bro all
 integers are 64bit.

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

More information about the bro-dev mailing list