The unified diff between revisions [2a6c9eb6..] and [743743c4..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'packet.c'
#
#
# patch "packet.c"
# from [6ec289d04a1bb71593461e80acce2d37fa1eb536]
# to [01803cc5860fe470ae70a883d807579b3bd0fc68]
#
============================================================
--- packet.c 6ec289d04a1bb71593461e80acce2d37fa1eb536
+++ packet.c 01803cc5860fe470ae70a883d807579b3bd0fc68
@@ -34,6 +34,7 @@
#include "service.h"
#include "auth.h"
#include "channel.h"
+#include "account.h"
static void read_packet_init();
static void writemac(buffer * outputbuffer, buffer * clearwritebuf);
@@ -139,6 +140,10 @@ void read_packet() {
if ((unsigned int)len == maxlen) {
/* The whole packet has been read */
+ if (IS_DROPBEAR_SERVER) {
+ /* coke charging */
+ acct_add(ses.readbuf->len, 0);
+ }
decrypt_packet();
/* The main select() loop process_packet() to
* handle the packet contents... */