]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-killtcp: Clarify a debug message
authorMartin Schwenke <martin@meltin.net>
Mon, 21 Mar 2016 00:45:10 +0000 (11:45 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 1 Apr 2016 02:42:12 +0000 (04:42 +0200)
The end of the connection in parentheses is not the end being killed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/ctdb_killtcp.c

index 27b3e89eb3424f92a76b468270bd3eadbf3bb04d..5347849e0c553f6b54f349e57c17b98e28c21c6e 100644 (file)
@@ -132,14 +132,14 @@ static void capture_tcp_handler(struct tevent_context *ev,
                return;
        }
 
-       /* This one has been tickled !
-          now reset him and remove him from the list.
-        */
+       /* This connection has been tickled!  RST it and remove it
+        * from the list. */
        DEBUG(DEBUG_INFO,
-             ("sending a tcp reset to kill connection :%d -> %s:%d\n",
-              ntohs(con->dst_addr.ip.sin_port),
+             ("Sending a TCP RST to kill connection (%s:%d) -> %s:%d\n",
               ctdb_sock_addr_to_string(con, &con->src_addr),
-              ntohs(con->src_addr.ip.sin_port)));
+              ntohs(con->src_addr.ip.sin_port),
+              ctdb_sock_addr_to_string(con, &con->dst_addr),
+              ntohs(con->dst_addr.ip.sin_port)));
 
        ctdb_sys_send_tcp(&con->dst_addr, &con->src_addr, ack_seq, seq, 1);
        talloc_free(con);