mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2025-08-05 07:26:02 +00:00
pcapif: fixed padding output data to ETH_MIN_FRAME_LEN for ETH_PAD_SIZE != 0
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user