706 |
LWIP_DEBUGF(PBUF_DEBUG | DBG_FRESH | 2, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t)); |
LWIP_DEBUGF(PBUF_DEBUG | DBG_FRESH | 2, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t)); |
707 |
} |
} |
708 |
|
|
709 |
/* For packet queueing. Note that queued packets must be dequeued first |
/* For packet queueing. Note that queued packets MUST be dequeued first |
710 |
* before calling any pbuf functions. */ |
* using pbuf_dequeue() before calling other pbuf_() functions. */ |
711 |
#if ARP_QUEUEING |
#if ARP_QUEUEING |
712 |
/** |
/** |
713 |
* Add a packet to the end of a queue. |
* Add a packet to the end of a queue. |
715 |
* @param q pointer to first packet on the queue |
* @param q pointer to first packet on the queue |
716 |
* @param n packet to be queued |
* @param n packet to be queued |
717 |
* |
* |
718 |
|
* Both packets MUST be given, and must be different. |
719 |
*/ |
*/ |
720 |
void |
void |
721 |
pbuf_queue(struct pbuf *p, struct pbuf *n) |
pbuf_queue(struct pbuf *p, struct pbuf *n) |
728 |
LWIP_ASSERT("n == NULL in pbuf_queue: this indicates a programmer error\n", n != NULL); |
LWIP_ASSERT("n == NULL in pbuf_queue: this indicates a programmer error\n", n != NULL); |
729 |
LWIP_ASSERT("p == n in pbuf_queue: this indicates a programmer error\n", p != n); |
LWIP_ASSERT("p == n in pbuf_queue: this indicates a programmer error\n", p != n); |
730 |
if ((p == NULL) || (n == NULL) || (p == n)){ |
if ((p == NULL) || (n == NULL) || (p == n)){ |
731 |
LWIP_ERRORF(PBUF_DEBUG | DBG_HALT | 3, ("pbuf_queue: programmer argument error\n")) |
LWIP_DEBUGF(PBUF_DEBUG | DBG_HALT | 3, ("pbuf_queue: programmer argument error\n")) |
732 |
return; |
return; |
733 |
} |
} |
734 |
|
|