summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index d71d4a8c5..b696d7821 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor_wrap.c,v 1.66 2009/05/25 06:48:01 andreas Exp $ */ 1/* $OpenBSD: monitor_wrap.c,v 1.67 2009/05/28 16:50:16 andreas 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>
@@ -77,6 +77,7 @@
77#include "channels.h" 77#include "channels.h"
78#include "session.h" 78#include "session.h"
79#include "servconf.h" 79#include "servconf.h"
80#include "roaming.h"
80 81
81/* Imports */ 82/* Imports */
82extern int compat20; 83extern int compat20;
@@ -660,6 +661,12 @@ mm_send_keystate(struct monitor *monitor)
660 buffer_put_string(&m, buffer_ptr(input), buffer_len(input)); 661 buffer_put_string(&m, buffer_ptr(input), buffer_len(input));
661 buffer_put_string(&m, buffer_ptr(output), buffer_len(output)); 662 buffer_put_string(&m, buffer_ptr(output), buffer_len(output));
662 663
664 /* Roaming */
665 if (compat20) {
666 buffer_put_int64(&m, get_sent_bytes());
667 buffer_put_int64(&m, get_recv_bytes());
668 }
669
663 mm_request_send(monitor->m_recvfd, MONITOR_REQ_KEYEXPORT, &m); 670 mm_request_send(monitor->m_recvfd, MONITOR_REQ_KEYEXPORT, &m);
664 debug3("%s: Finished sending state", __func__); 671 debug3("%s: Finished sending state", __func__);
665 672