summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Henry <joseph.henry@zerotier.com>2015-09-22 13:27:27 -0400
committerJoseph Henry <joseph.henry@zerotier.com>2015-09-22 13:27:27 -0400
commitb2494b53e6b77fd5a4e8e8ef8024b06448e02a17 (patch)
treeadeef8e9c3cd66bc73ad060c84f50e99bc8f7533
parentf091a074d45bd6fc9968cb162101f51f86d0e432 (diff)
downloadinfinitytier-b2494b53e6b77fd5a4e8e8ef8024b06448e02a17.tar.gz
infinitytier-b2494b53e6b77fd5a4e8e8ef8024b06448e02a17.zip
adjusted output size for packets
-rw-r--r--netcon/NetconEthernetTap.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netcon/NetconEthernetTap.hpp b/netcon/NetconEthernetTap.hpp
index 3103ef22..d211b425 100644
--- a/netcon/NetconEthernetTap.hpp
+++ b/netcon/NetconEthernetTap.hpp
@@ -222,7 +222,7 @@ static err_t low_level_output(struct netif *netif, struct pbuf *p)
dest_mac.setTo(ethhdr->dest.addr, 6);
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);
+ Utils::ntoh((uint16_t)ethhdr->type),0,buf + sizeof(struct eth_hdr),p->tot_len - sizeof(struct ethhdr));
printf("low_level_output(): length = %d\n", p->tot_len);
return ERR_OK;
}