555 |
} |
} |
556 |
++(p->ref); |
++(p->ref); |
557 |
} |
} |
558 |
|
|
559 |
|
/*------------------------------------------------------------------------------ |
560 |
|
/* pbuf_ref_chain(): |
561 |
|
* |
562 |
|
* Increments the reference count of all pbufs in a chain. |
563 |
|
*/ |
564 |
|
void |
565 |
|
pbuf_ref_chain(struct pbuf *p) |
566 |
|
{ |
567 |
|
while (p != NULL) { |
568 |
|
p->ref++; |
569 |
|
p=p->next; |
570 |
|
} |
571 |
|
} |
572 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |
573 |
/* pbuf_chain(): |
/* pbuf_chain(): |
574 |
* |
* |