diff options
author | Joseph Henry <joseph.henry@zerotier.com> | 2015-09-22 19:53:36 -0400 |
---|---|---|
committer | Joseph Henry <joseph.henry@zerotier.com> | 2015-09-22 19:53:36 -0400 |
commit | 07cef1bdb81802f6e774615e4b38215ad9c4feb9 (patch) | |
tree | 7a5ef8a5cfb70cda9df8b023b848e400ed3becbb /netcon/NetconEthernetTap.hpp | |
parent | 69f006f641fecf6eb01f65a78d2358cab84db420 (diff) | |
download | infinitytier-07cef1bdb81802f6e774615e4b38215ad9c4feb9.tar.gz infinitytier-07cef1bdb81802f6e774615e4b38215ad9c4feb9.zip |
misc cleanup
Diffstat (limited to 'netcon/NetconEthernetTap.hpp')
-rw-r--r-- | netcon/NetconEthernetTap.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/netcon/NetconEthernetTap.hpp b/netcon/NetconEthernetTap.hpp index c85e2d81..5b55b654 100644 --- a/netcon/NetconEthernetTap.hpp +++ b/netcon/NetconEthernetTap.hpp @@ -148,10 +148,11 @@ private: NetconConnection *getConnectionByThisFD(int fd); NetconConnection *getConnectionByPCB(struct tcp_pcb *pcb); NetconClient *getClientByPCB(struct tcp_pcb *pcb); - void closeClient(NetconClient *client); void closeAllClients(); void closeConnection(NetconConnection *conn); + void closeClient(NetconClient *client); + Phy<NetconEthernetTap *> _phy; PhySocket *_unixListenSocket; @@ -189,7 +190,7 @@ static err_t tapif_init(struct netif *netif) static err_t low_level_output(struct netif *netif, struct pbuf *p) { - fprintf(stderr, "low_level_output()\n"); + //fprintf(stderr, "low_level_output()\n"); struct pbuf *q; char buf[ZT1_MAX_MTU+32]; char *bufptr; @@ -223,7 +224,7 @@ static err_t low_level_output(struct netif *netif, struct pbuf *p) tap->_handler(tap->_arg,tap->_nwid,src_mac,dest_mac, Utils::ntoh((uint16_t)ethhdr->type),0,buf + sizeof(struct eth_hdr),tot_len - sizeof(struct eth_hdr)); - printf("low_level_output(): length = %d -- ethertype = %d\n", tot_len - sizeof(struct eth_hdr), Utils::ntoh((uint16_t)ethhdr->type)); + //printf("low_level_output(): length = %d -- ethertype = %d\n", tot_len - sizeof(struct eth_hdr), Utils::ntoh((uint16_t)ethhdr->type)); return ERR_OK; } |