[Bro-Dev] I am bit-wise logical operations in Bro script?

Hui Lin (Hugo) hlin33 at illinois.edu
Wed Dec 21 08:14:58 PST 2011

In the DNP3 protocol analyzer that I am writing, I need to check some
certain byte value (or even single bit) within the parsed field. It will be
easy to do that if we have bitwise logical operator.

However, I have already used "/" and "*" to manually calculate the bytes
out from a field. So far so good.

On Tue, Dec 20, 2011 at 10:17 PM, Vern Paxson <vern at icir.org> wrote:

> > I am wondering whether there is bitwise-And, bitwise-Or or even
> > bitwise-exclusiveOr operation in bro's script. I use "&" for bitwise-And,
> > but it generates syntax errors.
> Not available.  Can you explain why you need it?
>                Vern

Hui Lin
Research Assistant
DEPEND Research Group, ECE Department
University of Illinois at Urbana-Champaign
hlin33 at illinois.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.icsi.berkeley.edu/pipermail/bro-dev/attachments/20111221/1cc361bf/attachment.html 

More information about the bro-dev mailing list