[Bro] Help with simple stuff
Aashish Sharma
asharma at lbl.gov
Tue Jun 23 19:23:08 PDT 2015
> > local mypair = string_cat(c$id$orig_h,",",c$id$resp_h);
I generally endup with:
local mypair = fmt ("%s, %s", c$id$orig_h, c$id$resp_h) ;
Aashish
On Tue, Jun 23, 2015 at 10:13:57PM -0400, Seth Hall wrote:
>
> > On Jun 23, 2015, at 6:59 PM, Michael Black <mdblack98 at yahoo.com> wrote:
> >
> > local mypair = string_cat(c$id$orig_h,",",c$id$resp_h);
> > What obvious thing am I missing? Logically seems like one should be able to concatenate these together.
>
> Easy fix at least, use the “cat” function instead. string_cat only accepts strings are parameters, but orig_h and resp_h are addrs. cat accepts any type for it’s arguments.
>
> Good luck on whatever you’re working on. :)
>
> .Seth
>
> --
> Seth Hall
> International Computer Science Institute
> (Bro) because everyone has a network
> http://www.bro.org/
>
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
--
Aashish Sharma (asharma at lbl.gov)
Cyber Security,
Lawrence Berkeley National Laboratory
http://go.lbl.gov/pgp-aashish
Office: (510)-495-2680 Cell: (510)-612-7971
More information about the Bro
mailing list