154 |
time. The size of the data in each pbuf is kept in the ->len |
time. The size of the data in each pbuf is kept in the ->len |
155 |
variable. */ |
variable. */ |
156 |
/* send data from(q->payload, q->len); */ |
/* send data from(q->payload, q->len); */ |
157 |
bcopy(q->payload, bufptr, q->len); |
memcpy(bufptr, q->payload, q->len); |
158 |
bufptr += q->len; |
bufptr += q->len; |
159 |
} |
} |
160 |
|
|
203 |
avaliable data in the pbuf is given by the q->len |
avaliable data in the pbuf is given by the q->len |
204 |
variable. */ |
variable. */ |
205 |
/* read data into(q->payload, q->len); */ |
/* read data into(q->payload, q->len); */ |
206 |
bcopy(bufptr, q->payload, q->len); |
memcpy(q->payload, bufptr, q->len); |
207 |
bufptr += q->len; |
bufptr += q->len; |
208 |
} |
} |
209 |
/* acknowledge that packet has been read(); */ |
/* acknowledge that packet has been read(); */ |