mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
fix pbuf_alloc for layer PBUF_LINK
This commit is contained in:
parent
c9bd32d12b
commit
8210edfeea
@ -204,9 +204,9 @@ pbuf_alloc(pbuf_layer l, u16_t size, pbuf_flag flag)
|
|||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case PBUF_IP:
|
case PBUF_IP:
|
||||||
offset += PBUF_IP_HLEN;
|
offset += PBUF_IP_HLEN;
|
||||||
offset += PBUF_LINK_HLEN;
|
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
case PBUF_LINK:
|
case PBUF_LINK:
|
||||||
|
offset += PBUF_LINK_HLEN;
|
||||||
break;
|
break;
|
||||||
case PBUF_RAW:
|
case PBUF_RAW:
|
||||||
break;
|
break;
|
||||||
@ -661,4 +661,6 @@ pbuf_unref(struct pbuf *f)
|
|||||||
q = q->next;
|
q = q->next;
|
||||||
}
|
}
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user