/[lwip]/lwip/src/core/pbuf.c
ViewVC logotype

Diff of /lwip/src/core/pbuf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.73 by kieranm, Wed Nov 24 17:03:03 2004 UTC revision 1.74 by likewise, Thu Nov 25 11:23:37 2004 UTC
# Line 706  pbuf_chain(struct pbuf *h, struct pbuf * Line 706  pbuf_chain(struct pbuf *h, struct pbuf *
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.
# Line 715  pbuf_chain(struct pbuf *h, struct pbuf * Line 715  pbuf_chain(struct pbuf *h, struct pbuf *
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)
# Line 727  pbuf_queue(struct pbuf *p, struct pbuf * Line 728  pbuf_queue(struct pbuf *p, struct pbuf *
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    

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26