summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Henry <joseph.henry@zerotier.com>2015-09-22 13:25:24 -0400
committerJoseph Henry <joseph.henry@zerotier.com>2015-09-22 13:25:24 -0400
commitf091a074d45bd6fc9968cb162101f51f86d0e432 (patch)
treeb37aa7a0f77542f213201059e179bf54df8d9bdc
parentf80d65286c5fbeb1c4fee842676db3cad1ebfdc8 (diff)
downloadinfinitytier-f091a074d45bd6fc9968cb162101f51f86d0e432.tar.gz
infinitytier-f091a074d45bd6fc9968cb162101f51f86d0e432.zip
output lengths
-rw-r--r--netcon/NetconEthernetTap.cpp1
-rw-r--r--netcon/NetconEthernetTap.hpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp
index d039e629..93bca874 100644
--- a/netcon/NetconEthernetTap.cpp
+++ b/netcon/NetconEthernetTap.cpp
@@ -214,6 +214,7 @@ void NetconEthernetTap::put(const MAC &from,const MAC &to,unsigned int etherType
if(interface.input(p, &interface) != ERR_OK) {
fprintf(stderr, "Error while RXing packet (netif->input)\n");
}
+ printf("put(): length = %d\n", len);
}
std::string NetconEthernetTap::deviceName() const
diff --git a/netcon/NetconEthernetTap.hpp b/netcon/NetconEthernetTap.hpp
index 8b04dacf..3103ef22 100644
--- a/netcon/NetconEthernetTap.hpp
+++ b/netcon/NetconEthernetTap.hpp
@@ -223,6 +223,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),p->tot_len);
+ printf("low_level_output(): length = %d\n", p->tot_len);
return ERR_OK;
}