Browse Source

output lengths

Joseph Henry 10 years ago
parent
commit
f091a074d4
2 changed files with 2 additions and 0 deletions
  1. 1 0
      netcon/NetconEthernetTap.cpp
  2. 1 0
      netcon/NetconEthernetTap.hpp

+ 1 - 0
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

+ 1 - 0
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;
 }