diff options
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r-- | monitor_wrap.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c index e65fb1279..40463d078 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: monitor_wrap.c,v 1.62 2008/05/08 12:21:16 djm Exp $ */ | 1 | /* $OpenBSD: monitor_wrap.c,v 1.63 2008/07/10 18:08:11 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> | 3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> |
4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> | 4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> |
@@ -573,7 +573,7 @@ mm_send_keystate(struct monitor *monitor) | |||
573 | u_char *blob, *p; | 573 | u_char *blob, *p; |
574 | u_int bloblen, plen; | 574 | u_int bloblen, plen; |
575 | u_int32_t seqnr, packets; | 575 | u_int32_t seqnr, packets; |
576 | u_int64_t blocks; | 576 | u_int64_t blocks, bytes; |
577 | 577 | ||
578 | buffer_init(&m); | 578 | buffer_init(&m); |
579 | 579 | ||
@@ -622,14 +622,16 @@ mm_send_keystate(struct monitor *monitor) | |||
622 | buffer_put_string(&m, blob, bloblen); | 622 | buffer_put_string(&m, blob, bloblen); |
623 | xfree(blob); | 623 | xfree(blob); |
624 | 624 | ||
625 | packet_get_state(MODE_OUT, &seqnr, &blocks, &packets); | 625 | packet_get_state(MODE_OUT, &seqnr, &blocks, &packets, &bytes); |
626 | buffer_put_int(&m, seqnr); | 626 | buffer_put_int(&m, seqnr); |
627 | buffer_put_int64(&m, blocks); | 627 | buffer_put_int64(&m, blocks); |
628 | buffer_put_int(&m, packets); | 628 | buffer_put_int(&m, packets); |
629 | packet_get_state(MODE_IN, &seqnr, &blocks, &packets); | 629 | buffer_put_int64(&m, bytes); |
630 | packet_get_state(MODE_IN, &seqnr, &blocks, &packets, &bytes); | ||
630 | buffer_put_int(&m, seqnr); | 631 | buffer_put_int(&m, seqnr); |
631 | buffer_put_int64(&m, blocks); | 632 | buffer_put_int64(&m, blocks); |
632 | buffer_put_int(&m, packets); | 633 | buffer_put_int(&m, packets); |
634 | buffer_put_int64(&m, bytes); | ||
633 | 635 | ||
634 | debug3("%s: New keys have been sent", __func__); | 636 | debug3("%s: New keys have been sent", __func__); |
635 | skip: | 637 | skip: |