Hex and bit expressions in Bro scripts ?

Hi,

Can bro scripts not handle binary and bit expressions ?

local temp = 32;

If ( temp & 0x20) {

}

I didn’t see a list of expressions in the online guide.

Also , I tried to add binary variables in the Ascii (tab separated files) it reads and it complained too:

#field count
1 0x20

Pointers welcomed.

Nope. Neither are supported in the bro language. You could write a wrapper function and compile it into the core or a core plugin.

-AK