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

Bro Tracker bro at tracker.bro.org
Mon Mar 18 07:15:59 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):

 > So in short, to_count("\x00\x01") is different than
 > bytestring_to_uint16("\x00\x01").

 Ah, good point.  I totally missed that.

 Is there some reason that you have differentiated on different bit
 lengths?  That's what I was mostly focusing on with my comment earlier.
 It seems like you should have only implemented bytestring_to_count.

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

More information about the bro-dev mailing list