Lines Matching refs:tcphdr
128 struct tcphdr tcp_savetcp;
279 static void tcp_dooptions(struct tcpcb *, u_char *, int, struct tcphdr *,
283 struct tcphdr *, struct mbuf *, int);
304 static void tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th);
306 struct tcphdr *th);
308 struct tcphdr *th);
309 static void tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th);
310 static void tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th,
337 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
561 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m, in tcp_reass()
940 IP6_EXTHDR_CHECK(m, *offp, sizeof(struct tcphdr), return IPPROTO_DONE); in tcp6_input()
1376 tcp_detect_bad_rexmt(struct tcpcb *tp, struct tcphdr *th, in tcp_detect_bad_rexmt()
1410 tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th) in tcp_bad_rexmt_restore_state()
1468 tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to) in tcp_bad_rexmt_check()
1536 tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th) in tcp_early_rexmt_check()
1751 tcp_tfo_rcv_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_tfo_rcv_ack()
1771 tcp_update_window(struct tcpcb *tp, int thflags, struct tcphdr * th, in tcp_update_window()
1823 tcp_syn_data_valid(struct tcpcb *tp, struct tcphdr *tcp_hdr, int tlen) in tcp_syn_data_valid()
1873 struct tcphdr *th; in tcp_input()
1918 struct tcphdr saved_tcphdr = {}; in tcp_input()
1961 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
1987 struct tcphdr *, th); in tcp_input()
2010 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2023 struct ip *, ip, struct tcpcb *, NULL, struct tcphdr *, th); in tcp_input()
2037 if (off < sizeof(struct tcphdr) || off > tlen) { in tcp_input()
2044 if (off > sizeof(struct tcphdr)) { in tcp_input()
2048 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2056 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2059 optlen = off - sizeof(struct tcphdr); in tcp_input()
3197 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5467 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5510 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5784 tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcphdr *th, in tcp_dooptions()
5938 tcp_pulloutofband(struct socket *so, struct tcphdr *th, struct mbuf *m, int off) in tcp_pulloutofband()
6092 tcp_compute_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rtt()
6137 tcp_compute_rcv_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rcv_rtt()
6500 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mss()
6705 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mssopt()
6746 tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_partial_ack()
7168 tcp_input_checksum(int af, struct mbuf *m, struct tcphdr *th, int off, int tlen) in tcp_input_checksum()