Lines Matching refs:tcphdr
278 static void tcp_dooptions(struct tcpcb *, u_char *cp0 __counted_by(cnt0), int cnt0, struct tcphdr *,
282 struct tcphdr *, struct mbuf *, int);
303 static void tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th);
305 struct tcphdr *th);
307 struct tcphdr *th);
308 static void tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th);
309 static void tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th,
336 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
560 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m, in tcp_reass()
947 IP6_EXTHDR_CHECK(m, *offp, sizeof(struct tcphdr), return IPPROTO_DONE); in tcp6_input()
1325 tcp_detect_bad_rexmt(struct tcpcb *tp, struct tcphdr *th, in tcp_detect_bad_rexmt()
1359 tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th) in tcp_bad_rexmt_restore_state()
1422 tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to) in tcp_bad_rexmt_check()
1491 tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th) in tcp_early_rexmt_check()
1703 tcp_tfo_rcv_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_tfo_rcv_ack()
1723 tcp_update_window(struct tcpcb *tp, int thflags, struct tcphdr * th, in tcp_update_window()
1769 tcp_syn_data_valid(struct tcpcb *tp, struct tcphdr *tcp_hdr, int tlen) in tcp_syn_data_valid()
1976 tcp_process_accecn(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th, in tcp_process_accecn()
2019 struct tcphdr *th; in tcp_input()
2063 struct tcphdr saved_tcphdr = {}; in tcp_input()
2107 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2135 struct tcphdr *, th); in tcp_input()
2158 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2172 struct ip *, ip, struct tcpcb *, NULL, struct tcphdr *, th); in tcp_input()
2186 if (off < sizeof(struct tcphdr) || off > tlen) { in tcp_input()
2194 if (off > sizeof(struct tcphdr)) { in tcp_input()
2198 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2206 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2209 optlen = off - sizeof(struct tcphdr); in tcp_input()
3437 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5853 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5896 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
6158 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
6162 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
6192 tcp_dooptions(struct tcpcb *tp, u_char *cp0 __counted_by(cnt0), int cnt0, struct tcphdr *th, in tcp_dooptions()
6367 tcp_pulloutofband(struct socket *so, struct tcphdr *th, struct mbuf *m, int off) in tcp_pulloutofband()
6521 tcp_compute_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rtt()
6566 tcp_compute_rcv_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rcv_rtt()
6927 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mss()
7118 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mssopt()
7162 tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_partial_ack()
7602 tcp_input_checksum(int af, struct mbuf *m, struct tcphdr *th, int off, int tlen) in tcp_input_checksum()