357 |
* read the entire packet into the pbuf. */ |
* read the entire packet into the pbuf. */ |
358 |
for(q = p; q != NULL; q = q->next) { |
for(q = p; q != NULL; q = q->next) { |
359 |
/* Read enough bytes to fill this pbuf |
/* Read enough bytes to fill this pbuf |
360 |
* in the chain. The avaliable data in |
* in the chain. The available data in |
361 |
* the pbuf is given by the q->len variable. */ |
* the pbuf is given by the q->len variable. */ |
362 |
for (i = 0 ; i < q->len ; i++) { |
for (i = 0 ; i < q->len ; i++) { |
363 |
((u8_t *)q->payload)[i] = *(frame_bytes++); |
((u8_t *)q->payload)[i] = *(frame_bytes++); |