[Bro-Dev] #968: Add bytestring_to_uint16, uint32, uint64 functions
Bro Tracker
bro at tracker.bro.org
Fri Mar 22 08:06:43 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 yun):
Replying to [comment:28 robin]:
> We already have byte-swapping functions {{{ntoh*/hton*}}} in
{{{net_util.*}}}. Can't we use them here?
I was looking for portable endian / byteswap functions but could not find
any. Maybe I didn't look hard enough. Also was thinking about using the
ntoh* functions, but considering that network order is big endian, there
are no functions for converting network order to little endian if the host
machine is also big endian.. Or maybe i'm overseeing something?
--
Ticket URL: <http://tracker.bro.org/bro/ticket/968#comment:29>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list