Lines Matching refs:cp
80 *cp++ = 0; \
81 cp[1] = (u_char)(n); \
82 cp[0] = (u_char)((n) >> 8); \
83 cp += 2; \
85 *cp++ = (u_char)(n); \
90 *cp++ = 0; \
91 cp[1] = (u_char)(n); \
92 cp[0] = (u_char)((n) >> 8); \
93 cp += 2; \
95 *cp++ = (u_char)(n); \
100 if (*cp == 0) {\
101 u32_t tmp = ntohl(f) + ((cp[1] << 8) | cp[2]); \
103 cp += 3; \
105 u32_t tmp = ntohl(f) + (u32_t)*cp++; \
111 if (*cp == 0) {\
112 u_short tmp = ntohs(f) + (((u_short)cp[1] << 8) | cp[2]); \
114 cp += 3; \
116 u_short tmp = ntohs(f) + (u_short)*cp++; \
122 if (*cp == 0) {\
123 (f) = htons(((u_short)cp[1] << 8) | cp[2]); \
124 cp += 3; \
126 (f) = htons((u_short)*cp++); \
149 register u_char *cp = new_seq;
337 cp = new_seq;
345 cp = new_seq;
367 * (cp - new_seq) is the number of bytes we need for compressed
370 * So, (cp - new_seq) + 4 bytes of header are needed. hlen is how
374 deltaS = (u_short)(cp - new_seq);
382 cp = (u_char *)pb->payload;
383 *cp++ = (u_char)(changes | NEW_C);
384 *cp++ = cs->cs_id;
391 cp = (u_char *)pb->payload;
392 *cp++ = (u_char)changes;
394 *cp++ = (u_char)(deltaA >> 8);
395 *cp++ = (u_char)deltaA;
396 BCOPY(new_seq, cp, deltaS);
466 u_char *cp;
475 cp = (u_char *)n0->payload;
476 changes = *cp++;
482 if (*cp >= MAX_SLOTS) {
483 PPPDEBUG(LOG_INFO, ("vj_uncompress_tcp: bad cid=%d\n", *cp));
488 comp->last_recv = *cp++;
504 th->chksum = htons((*cp << 8) | cp[1]);
505 cp += 2;
556 * At this point, cp points to the first byte of data in the
560 vjlen = (u_short)(cp - (u_char*)n0->payload);