diff options
| author | Joseph Henry <joseph.henry@gmail.com> | 2015-11-03 10:30:18 -0800 |
|---|---|---|
| committer | Joseph Henry <joseph.henry@gmail.com> | 2015-11-03 10:30:18 -0800 |
| commit | df391c84133e1af2945d1a484fe64420cc668fa2 (patch) | |
| tree | 978fbe053c227d35fea42907980a2cc2bf107192 /netcon/NetconEthernetTap.cpp | |
| parent | 4c20fa4874f3f401d600ba6232a2cfb543fc4506 (diff) | |
| download | infinitytier-df391c84133e1af2945d1a484fe64420cc668fa2.tar.gz infinitytier-df391c84133e1af2945d1a484fe64420cc668fa2.zip | |
Added debug statements for transfer test
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
| -rw-r--r-- | netcon/NetconEthernetTap.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; } } |
