From df391c84133e1af2945d1a484fe64420cc668fa2 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Tue, 3 Nov 2015 10:30:18 -0800 Subject: Added debug statements for transfer test --- netcon/NetconEthernetTap.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'netcon/NetconEthernetTap.cpp') diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp index 7652eaf9..b6d7e2ce 100644 --- a/netcon/NetconEthernetTap.cpp +++ b/netcon/NetconEthernetTap.cpp @@ -927,6 +927,8 @@ err_t NetconEthernetTap::nc_sent(void* arg, struct tcp_pcb *tpcb, u16_t len) dwr(5, " nc_sent()\n"); Larg *l = (Larg*)arg; if(len) { + l->conn->acked+=len; + dwr("W = %d, A = %d\n", l->conn->written, l->conn->acked); l->tap->_phy.setNotifyReadable(l->conn->dataSock, true); l->tap->_phy.whack(); } @@ -1395,6 +1397,7 @@ void NetconEthernetTap::handle_write(TcpConnection *conn) memmove(&conn->buf, (conn->buf+r), sz); } conn->idx -= r; + conn->written+=err; return; } } -- cgit v1.2.3