Home | History | Annotate | Download | only in slirp-android

Lines Matching defs:ti

73 	register struct tcpiphdr *ti;
398 ti = mtod(m, struct tcpiphdr *);
400 memcpy((caddr_t)ti, &tp->t_template, sizeof (struct tcpiphdr));
424 ti->ti_seq = htonl(tp->snd_nxt);
426 ti->ti_seq = htonl(tp->snd_max);
427 ti->ti_ack = htonl(tp->rcv_nxt);
429 memcpy((caddr_t)(ti + 1), (caddr_t)opt, optlen);
430 ti->ti_off = (sizeof (struct tcphdr) + optlen) >> 2;
432 ti->ti_flags = flags;
443 ti->ti_win = htons((u_int16_t) (win>>tp->rcv_scale));
446 ti->ti_urp = htons((u_int16_t)(tp->snd_up - ntohl(ti->ti_seq)));
449 ti->ti_urp = htons((u_int16_t)(tp->snd_up - tp->snd_nxt));
451 ti->ti_flags |= TH_URG;
466 ti->ti_len = htons((u_int16_t)(sizeof (struct tcphdr) +
468 ti->ti_sum = cksum(m, (int)(hdrlen + len));
532 ((struct ip *)ti)->ip_len = m->m_len;
534 ((struct ip *)ti)->ip_ttl = IPDEFTTL;
535 ((struct ip *)ti)->ip_tos = so->so_iptos;