Home | History | Annotate | Download | only in slirp

Lines Matching defs:cp

504 	register u_char *cp;
514 cp = (u_char *)(ip + 1);
516 for (; cnt > 0; cnt -= optlen, cp += optlen) {
517 opt = cp[IPOPT_OPTVAL];
523 optlen = cp[IPOPT_OLEN];
525 code = &cp[IPOPT_OLEN] - (u_char *)ip;
545 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) {
546 code = &cp[IPOPT_OFFSET] - (u_char *)ip;
569 save_rte(cp, ip->ip_src);
575 bcopy((caddr_t)(cp + off), (caddr_t)&ipaddr.sin_addr,
591 (caddr_t)(cp + off), sizeof(struct in_addr));
592 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
600 if ((off = cp[IPOPT_OFFSET]) < IPOPT_MINOFF) {
601 code = &cp[IPOPT_OFFSET] - (u_char *)ip;
623 (caddr_t)(cp + off), sizeof(struct in_addr));
624 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
628 code = cp - (u_char *)ip;
629 ipt = (struct ip_timestamp *)cp;
637 sin = (struct in_addr *)(cp + ipt->ipt_ptr - 1);
672 bcopy((caddr_t)&ntime, (caddr_t)cp + ipt->ipt_ptr - 1,