summaryrefslogtreecommitdiff
path: root/ctdb/tools/ctdb_killtcp.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2016-03-21 11:07:19 +1100
committerAmitay Isaacs <amitay@samba.org>2016-04-01 04:42:12 +0200
commitbba31152df279ebf6afa6555544a990d64dbe4b1 (patch)
tree1a1a30dc9cb1a873d8ccf95e18911ae13ae0ef58 /ctdb/tools/ctdb_killtcp.c
parentd7fa4b76c57358406ddc53569372add7fc57089b (diff)
downloadsamba-bba31152df279ebf6afa6555544a990d64dbe4b1.tar.gz
ctdb-system: Return window size and RST bit when reading TCP packets
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tools/ctdb_killtcp.c')
-rw-r--r--ctdb/tools/ctdb_killtcp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ctdb/tools/ctdb_killtcp.c b/ctdb/tools/ctdb_killtcp.c
index 5347849e0c5..f6b6a0e6dde 100644
--- a/ctdb/tools/ctdb_killtcp.c
+++ b/ctdb/tools/ctdb_killtcp.c
@@ -113,11 +113,13 @@ static void capture_tcp_handler(struct tevent_context *ev,
struct ctdb_killtcp_con *con;
ctdb_sock_addr src, dst;
uint32_t ack_seq, seq;
+ int rst;
+ uint16_t window;
if (ctdb_sys_read_tcp_packet(killtcp->capture_fd,
- killtcp->private_data,
- &src, &dst,
- &ack_seq, &seq) != 0) {
+ killtcp->private_data,
+ &src, &dst,
+ &ack_seq, &seq, &rst, &window) != 0) {
/* probably a non-tcp ACK packet */
return;
}