mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 07:05:56 +00:00
First packet on queue generated assertion failure. Reported by David Haas on lwip-users on Friday 13th.
This commit is contained in:
parent
785f90d9fa
commit
515fb5a3fd
|
@ -752,8 +752,14 @@ err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q)
|
||||||
p = pbuf_take(q);
|
p = pbuf_take(q);
|
||||||
/* packet could be taken over? */
|
/* packet could be taken over? */
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
/* queue packet */
|
/* queue packet ... */
|
||||||
|
if (arp_table[i].p == NULL) {
|
||||||
|
/* ... in the empty queue */
|
||||||
|
arp_table[i].p = p;
|
||||||
|
} else {
|
||||||
|
/* ... at tail of non-empty queue */
|
||||||
pbuf_queue(arp_table[i].p, p);
|
pbuf_queue(arp_table[i].p, p);
|
||||||
|
}
|
||||||
LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %d\n", (void *)q, i));
|
LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %d\n", (void *)q, i));
|
||||||
result = ERR_OK;
|
result = ERR_OK;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user