summaryrefslogtreecommitdiff
path: root/netcon/NetconEthernetTap.cpp
diff options
context:
space:
mode:
authorJoseph Henry <joseph.henry@zerotier.com>2015-09-24 15:56:48 -0400
committerJoseph Henry <joseph.henry@zerotier.com>2015-09-24 15:56:48 -0400
commit9396b8d53cbf8cdca1836fa046146c93dcfb2a3e (patch)
tree6fb275a4265ba4128468f6300e99e5229347c233 /netcon/NetconEthernetTap.cpp
parent37497ec2a85122f4a6042804f7b122a5d778c34a (diff)
downloadinfinitytier-9396b8d53cbf8cdca1836fa046146c93dcfb2a3e.tar.gz
infinitytier-9396b8d53cbf8cdca1836fa046146c93dcfb2a3e.zip
Minor debug changes
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
-rw-r--r--netcon/NetconEthernetTap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp
index 36cea177..0e78ae44 100644
--- a/netcon/NetconEthernetTap.cpp
+++ b/netcon/NetconEthernetTap.cpp
@@ -125,9 +125,9 @@ bool NetconEthernetTap::addIp(const InetAddress &ip)
netmask.addr = *((u32_t *)ip.netmask().rawIpData());
// Set up the lwip-netif for LWIP's sake
- lwipstack->netif_add(&interface,&ipaddr, &netmask, &gw, NULL, tapif_init, lwipstack->ethernet_input);
+ lwipstack->netif_add(&interface,&ipaddr, &netmask, &gw, NULL, tapif_init, lwipstack->_ethernet_input);
interface.state = this;
- interface.output = lwipstack->etharp_output;
+ interface.output = lwipstack->_etharp_output;
_mac.copyTo(interface.hwaddr, 6);
interface.mtu = _mtu;
interface.name[0] = 't';
@@ -166,7 +166,7 @@ std::vector<InetAddress> NetconEthernetTap::ips() const
void NetconEthernetTap::put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len)
{
- //fprintf(stderr, "__put(): tid = %d\n", gettid());
+ fprintf(stderr, "__put(): len = %d\n", len);
struct pbuf *p,*q;
//fprintf(stderr, "_put(%s,%s,%.4x,[data],%u)\n",from.toString().c_str(),to.toString().c_str(),etherType,len);