From 3e8e025704d6965cd0d67213bcca7d2ae1a70036 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Wed, 14 Oct 2015 19:55:21 -0400 Subject: Minor cleanup items --- netcon/NetconEthernetTap.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'netcon/NetconEthernetTap.cpp') diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp index 0ef3a6f0..72d6273a 100644 --- a/netcon/NetconEthernetTap.cpp +++ b/netcon/NetconEthernetTap.cpp @@ -49,7 +49,9 @@ #include "Intercept.h" #include "NetconUtilities.hpp" -#define APPLICATION_POLL_FREQ 1 +#define APPLICATION_POLL_FREQ 1 +#define ZT_LWIP_TCP_TIMER_INTERVAL 10 + namespace ZeroTier { @@ -238,7 +240,6 @@ void NetconEthernetTap::scanMulticastGroups(std::vector &added,s if (!std::binary_search(newGroups.begin(),newGroups.end(),*m)) removed.push_back(*m); } - _multicastGroups.swap(newGroups); } @@ -291,8 +292,10 @@ void NetconEthernetTap::closeConnection(TcpConnection *conn) void NetconEthernetTap::closeClient(PhySocket *sock) { for(int i=0; itap->send_return_value(conn, -1, errno); + //fprintf(stderr, "**************\n"); return ERR_MEM; } } @@ -745,7 +749,7 @@ err_t NetconEthernetTap::nc_poll(void* arg, struct tcp_pcb *tpcb) * */ err_t NetconEthernetTap::nc_sent(void* arg, struct tcp_pcb *tpcb, u16_t len) -{ +{fprintf(stderr, "nc_sent()\n"); Larg *l = (Larg*)arg; if(len) { //fprintf(stderr, "ACKING len = %d, setting read-notify = true, (sndbuf = %d)\n", len, l->conn->pcb->snd_buf); @@ -769,6 +773,7 @@ err_t NetconEthernetTap::nc_sent(void* arg, struct tcp_pcb *tpcb, u16_t len) */ err_t NetconEthernetTap::nc_connected(void *arg, struct tcp_pcb *tpcb, err_t err) { + fprintf(stderr, "nc_connected()\n"); Larg *l = (Larg*)arg; l->tap->send_return_value(l->conn, ERR_OK); return ERR_OK; -- cgit v1.2.3