From b9705ef949d06b33c25a7bfd2153ea00928738f0 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 10 Dec 2014 09:46:47 +0100 Subject: [PATCH] pcapif: fixed padding output data to ETH_MIN_FRAME_LEN for ETH_PAD_SIZE != 0 --- ports/win32/pcapif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/win32/pcapif.c b/ports/win32/pcapif.c index df531b8..c5618d7 100644 --- a/ports/win32/pcapif.c +++ b/ports/win32/pcapif.c @@ -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 {