[Bro] size file

Rober Fernández roberixion at gmail.com
Fri Nov 3 05:19:28 PDT 2017


hi,

I have this code:

event connection_established(c: connection)  {

    local orig_file = generate_extraction_filename(extrac_prefix, c,
"orig.dat");
    local orig_f = open(orig_file);
    set_contents_file(c$id, CONTENTS_ORIG, orig_f);

    local resp_file = generate_extraction_filename(extrac_prefix, c,
"resp.dat");
    local resp_f = open(resp_file);
    set_contents_file(c$id, CONTENTS_RESP, resp_f);

}

and I would like set a maximum size, I think that I have two options,
1. set a maximum size file
2. control the data so that it does not exceed the size

How can I do this?

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20171103/0fb16ee9/attachment.html 


More information about the Bro mailing list