[Bro] If Statement Syntax

Robin Sommer robin at icir.org
Mon Apr 21 12:11:56 PDT 2008


On Mon, Apr 21, 2008 at 14:14 -0400, Danny Nechay wrote:

> if ( c$id$resp_p == "443" ) {

Bro has a dedicated port type. Try c$id$resp_p == 443/tcp .

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

else if.

Robin

-- 
Robin Sommer * Phone +1 (510) 666-2886 * robin at icir.org 
ICSI/LBNL    * Fax   +1 (510) 666-2956 *   www.icir.org



More information about the Bro mailing list