Lines Matching refs:cp
109 *cp++ = 0; \
110 cp[1] = (n); \
111 cp[0] = (n) >> 8; \
112 cp += 2; \
114 *cp++ = (n); \
119 *cp++ = 0; \
120 cp[1] = (n); \
121 cp[0] = (n) >> 8; \
122 cp += 2; \
124 *cp++ = (n); \
129 if (*cp == 0) {\
130 (f) = htonl(ntohl(f) + ((cp[1] << 8) | cp[2])); \
131 cp += 3; \
133 (f) = htonl(ntohl(f) + (u_int32_t)*cp++); \
138 if (*cp == 0) {\
139 (f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
140 cp += 3; \
142 (f) = htons(ntohs(f) + (u_int32_t)*cp++); \
147 if (*cp == 0) {\
148 (f) = htons((cp[1] << 8) | cp[2]); \
149 cp += 3; \
151 (f) = htons((u_int32_t)*cp++); \
170 register u_char *cp = new_seq;
353 cp = new_seq;
361 cp = new_seq;
382 * We want to use the original packet as our compressed packet. (cp -
385 * id and two for the tcp checksum. So, (cp - new_seq) + 4 bytes of header
389 deltaS = cp - new_seq;
390 cp = (u_char *) ip;
399 cp += hlen;
400 *cp++ = changes;
404 cp += hlen;
405 *cp++ = changes | NEW_C;
406 *cp++ = cs->cs_id;
410 *cp++ = deltaA >> 8;
411 *cp++ = deltaA;
412 memcpy(cp, new_seq, deltaS);
433 register u_char *cp;
475 cp = *bufp;
476 changes = *cp++;
484 if (*cp > max_state || comp->last_recv == 255)
488 comp->last_recv = *cp++;
503 th->th_sum = htons((*cp << 8) | cp[1]);
504 cp += 2;
537 *cp, cp[1], cp[2]);
551 * At this point, cp points to the first byte of data in the packet.
552 * Back up cp by the tcp/ip header length to make room for the
557 len -= (cp - *bufp);
565 *bufp = cp - cs->cs_hlen;