diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-24 13:02:10 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-09-24 13:02:10 -0700 |
commit | b263926ea66b7ab06b8f84755a68d21bdf6defe3 (patch) | |
tree | d26b2f8f434d5cbd8e526f385999aa7e08c5d007 /netcon/NetconEthernetTap.cpp | |
parent | 84747b1a141e270e86965aa2a4aa544d20743ac5 (diff) | |
parent | 9396b8d53cbf8cdca1836fa046146c93dcfb2a3e (diff) | |
download | infinitytier-b263926ea66b7ab06b8f84755a68d21bdf6defe3.tar.gz infinitytier-b263926ea66b7ab06b8f84755a68d21bdf6defe3.zip |
thread fixes.
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
-rw-r--r-- | netcon/NetconEthernetTap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp index 29006472..a060b97c 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); |