[Bro] Function for Decimal to Hex
John B. Althouse
john.b.althouse at gmail.com
Wed Feb 15 12:57:57 PST 2017
Awesome, works! Thank you guys!
On Wed, Feb 15, 2017 at 2:52 PM, Daniel Thayer <dnthayer at illinois.edu>
wrote:
> 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
> >
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20170215/351d584c/attachment.html
More information about the Bro
mailing list