Lines Matching refs:tcphdr

124 struct tcphdr tcp_savetcp;
281 static void tcp_dooptions(struct tcpcb *, u_char *, int, struct tcphdr *,
284 struct tcphdr *, struct mbuf *, int);
285 static int tcp_reass(struct tcpcb *, struct tcphdr *, int *, struct mbuf *,
311 static void tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th);
313 struct tcphdr *th);
314 static void tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th);
315 static void tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th,
359 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
556 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m,
892 IP6_EXTHDR_CHECK(m, *offp, sizeof(struct tcphdr), return IPPROTO_DONE);
1243 tcp_detect_bad_rexmt(struct tcpcb *tp, struct tcphdr *th,
1276 tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th)
1332 tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to)
1390 tcp_early_rexmt_check (struct tcpcb *tp, struct tcphdr *th)
1490 register struct tcphdr *th;
1576 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0);
1599 struct tcphdr *, th);
1624 th = (struct tcphdr *)(void *)((caddr_t)ip + off0);
1637 struct ip *, ip, struct tcpcb *, NULL, struct tcphdr *, th);
1650 if (off < sizeof (struct tcphdr) || off > tlen) {
1656 if (off > sizeof (struct tcphdr)) {
1661 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0);
1671 th = (struct tcphdr *)(void *)((caddr_t)ip + off0);
1674 optlen = off - sizeof (struct tcphdr);
3457 (void) tcp_reass(tp, (struct tcphdr *)0, &tlen,
4508 struct tcphdr *th;
4608 struct tcphdr *th;
4694 tcp_compute_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th)
4920 min_protoh = isipv6 ? sizeof (struct ip6_hdr) + sizeof (struct tcphdr)
5129 min_protoh = isipv6 ? sizeof (struct ip6_hdr) + sizeof (struct tcphdr)
5178 struct tcphdr *th;
5558 tcp_input_checksum(int af, struct mbuf *m, struct tcphdr *th, int off, int tlen)