Browse Source

Added debug statements for transfer test

pull/1/head
Joseph Henry 11 years ago
parent
commit
df391c8413
  1. 1
      ext/lwipopts.h
  2. 3
      netcon/NetconEthernetTap.cpp
  3. 5
      netcon/NetconService.hpp
  4. BIN
      netcon/liblwip.so

1
ext/lwipopts.h

@ -48,6 +48,7 @@
//#define TCP_MSS 2048
//#define TCP_WND 512
#define LWIP_NOASSERT 1
#define TCP_LISTEN_BACKLOG 0
/*------------------------------------------------------------------------------

3
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;
}
}

5
netcon/NetconService.hpp

@ -57,7 +57,10 @@ namespace ZeroTier {
bool pending;
bool listening;
int pid;
unsigned long written;
unsigned long acked;
PhySocket *rpcSock;
PhySocket *dataSock;
struct tcp_pcb *pcb;

BIN
netcon/liblwip.so

Binary file not shown.
Loading…
Cancel
Save