Fixed a wrong assert statement in etharp_query when ARP_QUEUEING=1 and packets should be queued.

This commit is contained in:
goldsimon 2007-07-01 14:52:09 +00:00
parent b6750de9e8
commit d7c50f56d7

View File

@ -882,7 +882,7 @@ etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q)
* PBUF_ROMs can be left as they are, since ROM must not get changed. */
p = q;
while (p) {
LWIP_ASSERT("no packet queues allowed!", (p->len == p->tot_len) || (p->next == 0));
LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0));
if(p->flags != PBUF_FLAG_ROM) {
copy_needed = 1;
break;