205 |
bufptr = &buf[0]; |
bufptr = &buf[0]; |
206 |
for(q = p; q != NULL; q = q->next) { |
for(q = p; q != NULL; q = q->next) { |
207 |
/* Read enough bytes to fill this pbuf in the chain. The |
/* Read enough bytes to fill this pbuf in the chain. The |
208 |
avaliable data in the pbuf is given by the q->len |
available data in the pbuf is given by the q->len |
209 |
variable. */ |
variable. */ |
210 |
/* read data into(q->payload, q->len); */ |
/* read data into(q->payload, q->len); */ |
211 |
memcpy(q->payload, bufptr, q->len); |
memcpy(q->payload, bufptr, q->len); |