Home | History | Annotate | Download | only in npf

Lines Matching refs:cp

282 	uint8_t *cp, opt;
300 if ((cp = nbuf_advance(nbuf, step, cnt)) == NULL) {
306 for (; cnt > 0; cnt -= optlen, cp += optlen) {
307 opt = cp[0];
315 optlen = cp[1];
325 memcpy(mss, cp + 2, sizeof(uint16_t));
331 val = *(cp + 2);
357 uint8_t *cp, *base, opt;
380 for (cp = base; cnt > 0; cnt -= optlen, cp += optlen) {
381 opt = cp[0];
389 optlen = cp[1];
398 if (((cp + 2) - base) % sizeof(uint16_t) != 0) {
400 memcpy(&old[0], cp + 1, sizeof(uint16_t));
401 memcpy(&old[1], cp + 3, sizeof(uint16_t));
402 memcpy(cp + 2, &mss, sizeof(uint16_t));
403 memcpy(&new[0], cp + 1, sizeof(uint16_t));
404 memcpy(&new[1], cp + 3, sizeof(uint16_t));
407 memcpy(cp + 2, &mss, sizeof(uint16_t));