summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index c9714138a..f674ef78d 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -25,7 +25,7 @@
25 */ 25 */
26 26
27#include "includes.h" 27#include "includes.h"
28RCSID("$OpenBSD: monitor_wrap.c,v 1.24 2003/04/01 10:22:21 markus Exp $"); 28RCSID("$OpenBSD: monitor_wrap.c,v 1.25 2003/04/02 09:48:07 markus Exp $");
29 29
30#include <openssl/bn.h> 30#include <openssl/bn.h>
31#include <openssl/dh.h> 31#include <openssl/dh.h>
@@ -520,6 +520,8 @@ mm_send_keystate(struct monitor *pmonitor)
520 Buffer m; 520 Buffer m;
521 u_char *blob, *p; 521 u_char *blob, *p;
522 u_int bloblen, plen; 522 u_int bloblen, plen;
523 u_int32_t seqnr, packets;
524 u_int64_t blocks;
523 525
524 buffer_init(&m); 526 buffer_init(&m);
525 527
@@ -568,8 +570,14 @@ mm_send_keystate(struct monitor *pmonitor)
568 buffer_put_string(&m, blob, bloblen); 570 buffer_put_string(&m, blob, bloblen);
569 xfree(blob); 571 xfree(blob);
570 572
571 buffer_put_int(&m, packet_get_seqnr(MODE_OUT)); 573 packet_get_state(MODE_OUT, &seqnr, &blocks, &packets);
572 buffer_put_int(&m, packet_get_seqnr(MODE_IN)); 574 buffer_put_int(&m, seqnr);
575 buffer_put_int64(&m, blocks);
576 buffer_put_int(&m, packets);
577 packet_get_state(MODE_OUT, &seqnr, &blocks, &packets);
578 buffer_put_int(&m, seqnr);
579 buffer_put_int64(&m, blocks);
580 buffer_put_int(&m, packets);
573 581
574 debug3("%s: New keys have been sent", __func__); 582 debug3("%s: New keys have been sent", __func__);
575 skip: 583 skip: