[Bro] If Statement Syntax

Danny Nechay d.nechay at gmail.com
Mon Apr 21 11:14:44 PDT 2008


Hi,

I'm trying to find out what is in the variable c$id$resp_p (which is a port
number). I tried using the following syntax
if ( c$id$resp_p == "443" ) {
...
}

On 443 I try it with and without quotations around it but I always get the
following error:
line 293 (c$id$resp_p == 443): error, type clash in comparison
Does anyone know the proper syntax?

Also what is the proper syntax for else if in Bro? Is it else if () or elsif
()?
Thanks.


Daniel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20080421/5d17b209/attachment.html 


More information about the Bro mailing list