fix pbuf_alloc for layer PBUF_LINK

This commit is contained in:
jani 2002-11-22 08:32:31 +00:00
parent c9bd32d12b
commit 8210edfeea

View File

@ -204,9 +204,9 @@ pbuf_alloc(pbuf_layer l, u16_t size, pbuf_flag flag)
/* FALLTHROUGH */
case PBUF_IP:
offset += PBUF_IP_HLEN;
offset += PBUF_LINK_HLEN;
/* FALLTHROUGH */
case PBUF_LINK:
offset += PBUF_LINK_HLEN;
break;
case PBUF_RAW:
break;
@ -661,4 +661,6 @@ pbuf_unref(struct pbuf *f)
q = q->next;
}
return f;
}
}