Lines Matching defs:cp
111 static void tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt,
1504 tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcpiphdr *ti)
1512 for (; cnt > 0; cnt -= optlen, cp += optlen) {
1513 opt = cp[0];
1519 optlen = cp[1];
1533 memcpy((char *) &mss, (char *) cp + 2, sizeof(mss));
1544 * tp->requested_s_scale = min(cp[2], TCP_MAX_WINSHIFT);
1551 * memcpy((char *) ts_val, (char *)cp + 2, sizeof(*ts_val));
1553 * memcpy((char *) ts_ecr, (char *)cp + 6, sizeof(*ts_ecr));
1590 char *cp = mtod(m, caddr_t) + cnt;
1593 tp->t_iobc = *cp;
1595 memcpy(sp, cp+1, (unsigned)(m->m_len - cnt - 1));