Home | History | Annotate | Download | only in slirp

Lines Matching refs:cp

111 static void tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt,
1498 tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcpiphdr *ti)
1506 for (; cnt > 0; cnt -= optlen, cp += optlen) {
1507 opt = cp[0];
1513 optlen = cp[1];
1527 memcpy((char *) &mss, (char *) cp + 2, sizeof(mss));
1538 * tp->requested_s_scale = min(cp[2], TCP_MAX_WINSHIFT);
1545 * memcpy((char *) ts_val, (char *)cp + 2, sizeof(*ts_val));
1547 * memcpy((char *) ts_ecr, (char *)cp + 6, sizeof(*ts_ecr));
1584 char *cp = mtod(m, caddr_t) + cnt;
1587 tp->t_iobc = *cp;
1589 memcpy(sp, cp+1, (unsigned)(m->m_len - cnt - 1));