[Bro] Function for Decimal to Hex

Daniel Thayer dnthayer at illinois.edu
Wed Feb 15 11:52:22 PST 2017

The to_upper() function returns a string, so your example can be simplified:

   print to_upper(fmt("%x",num));

On 2/15/17 1:41 PM, Mike Dopheide wrote:
> Then what Daniel said is your way forward, if you need capital letters,
> something like this would work:
>         local num: count = 32154;
>         print fmt("%s",to_upper(fmt("%x",num)));
> -Dop

More information about the Bro mailing list