723 |
struct pbuf *q = p; |
struct pbuf *q = p; |
724 |
#endif |
#endif |
725 |
/* programmer stupidity checks */ |
/* programmer stupidity checks */ |
726 |
LWIP_ASSERT("p != NULL", p != NULL); |
LWIP_ASSERT("p == NULL in pbuf_queue: this indicates a programmer error\n", p != NULL); |
727 |
LWIP_ASSERT("n != NULL", n != NULL); |
LWIP_ASSERT("n == NULL in pbuf_queue: this indicates a programmer error\n", n != NULL); |
728 |
if ((p == NULL) || (n == NULL)) return; |
LWIP_ASSERT("p == n in pbuf_queue: this indicates a programmer error\n", p != n); |
729 |
|
if ((p == NULL) || (n == NULL) || (p == n)){ |
730 |
|
LWIP_ERRORF(PBUF_DEBUG | DBG_HALT | 3, ("pbuf_queue: programmer argument error\n")) |
731 |
|
return; |
732 |
|
} |
733 |
|
|
734 |
/* iterate through all packets on queue */ |
/* iterate through all packets on queue */ |
735 |
while (p->next != NULL) { |
while (p->next != NULL) { |