[Bro] Trying to get drop_source_and_terminate working

Tyler T. Schoenke Tyler.Schoenke at colorado.edu
Fri Jun 4 15:55:51 PDT 2010


Vern,

Thanks for the patch, yes, that fixed the error message.   I also had to remove the ./ from ./rst in terminate-connection.bro to get the rst utility to work.  Should I add these to the tracker?

--- terminate-connection.bro.orig       2010-06-04 16:21:02.000000000 -0600
+++ terminate-connection.bro    2010-06-04 16:46:51.000000000 -0600
@@ -32,7 +32,7 @@
                {
                local local_init = is_local_addr(id$orig_h);

-               local term_cmd = fmt("./rst %s -n 32 -d 20 %s %d %d %s %d %d",
+               local term_cmd = fmt("rst %s -n 32 -d 20 %s %d %d %s %d %d",
                                        local_init ? "-R" : "",
                                        id$orig_h, id$orig_p, get_orig_seq(id),
                                        id$resp_h, id$resp_p, get_resp_seq(id));
@@ -43,7 +43,7 @@
                        NOTICE([$note=TerminatingConnection, $conn=c,
                                $msg=term_cmd, $sub="first termination command"]);

-               term_cmd = fmt("./rst %s -r 2 -n 4 -s 512 -d 20 %s %d %d %s %d %d",
+               term_cmd = fmt("rst %s -r 2 -n 4 -s 512 -d 20 %s %d %d %s %d %d",
                                local_init ? "-R" : "",
                                id$orig_h, id$orig_p, get_orig_seq(id),
                                id$resp_h, id$resp_p, get_resp_seq(id));

Tyler
________________________________________
From: Vern Paxson [vern at icir.org]
Sent: Friday, June 04, 2010 3:26 PM
To: Tyler T. Schoenke
Cc: bro at ICSI.Berkeley.EDU
Subject: Re: [Bro] Trying to get drop_source_and_terminate working

> 1275573771.744509 /usr/local/bro/share/bro/notice-action-filters.bro,
> line 74 (terminate_connection): run-time error, value used but not set
>
> Any ideas?

Try the appended patch and let me know if it fixes the problem.

                Vern





More information about the Bro mailing list