pcapif: fixed padding output data to ETH_MIN_FRAME_LEN for ETH_PAD_SIZE != 0

This commit is contained in:
goldsimon 2014-12-10 09:46:47 +01:00
parent bea4a92069
commit b9705ef949
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ pcapif_low_level_output(struct netif *netif, struct pbuf *p)
#endif
/* initiate transfer */
if ((p->len == p->tot_len) && (p->len >= ETH_MIN_FRAME_LEN)) {
if ((p->len == p->tot_len) && (p->len >= ETH_MIN_FRAME_LEN + ETH_PAD_SIZE)) {
/* no pbuf chain, don't have to copy -> faster */
buf = &((unsigned char*)p->payload)[ETH_PAD_SIZE];
} else {