From b2494b53e6b77fd5a4e8e8ef8024b06448e02a17 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Tue, 22 Sep 2015 13:27:27 -0400 Subject: adjusted output size for packets --- netcon/NetconEthernetTap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netcon') 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; } -- cgit v1.2.3