Lines Matching refs:tcphdr
257 static void tcp_dooptions(struct tcpcb *, u_char *cp0 __counted_by(cnt0), int cnt0, struct tcphdr *,
261 struct tcphdr *, struct mbuf *, int);
281 static void tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th);
283 struct tcphdr *th);
285 struct tcphdr *th);
286 static void tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th);
287 static void tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th,
314 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
538 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m, in tcp_reass()
945 IP6_EXTHDR_CHECK(m, *offp, sizeof(struct tcphdr), return IPPROTO_DONE); in tcp6_input()
1238 tcp_detect_bad_rexmt(struct tcpcb *tp, struct tcphdr *th, in tcp_detect_bad_rexmt()
1272 tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th) in tcp_bad_rexmt_restore_state()
1335 tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to) in tcp_bad_rexmt_check()
1404 tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th) in tcp_early_rexmt_check()
1616 tcp_tfo_rcv_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_tfo_rcv_ack()
1636 tcp_update_window(struct tcpcb *tp, int thflags, struct tcphdr * th, in tcp_update_window()
1685 tcp_syn_data_valid(struct tcpcb *tp, struct tcphdr *tcp_hdr, int tlen) in tcp_syn_data_valid()
2160 tcp_process_accecn(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th, in tcp_process_accecn()
2243 struct tcphdr *th = tpi->th; in tcp_create_server_socket()
2755 struct tcphdr *th; in tcp_input()
2798 struct tcphdr saved_tcphdr = {}; in tcp_input()
2839 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2867 struct tcphdr *, th); in tcp_input()
2890 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2904 struct ip *, ip, struct tcpcb *, NULL, struct tcphdr *, th); in tcp_input()
2918 if (off < sizeof(struct tcphdr) || off > tlen) { in tcp_input()
2926 if (off > sizeof(struct tcphdr)) { in tcp_input()
2930 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2938 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2941 optlen = off - sizeof(struct tcphdr); in tcp_input()
3971 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
6041 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
6082 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
6344 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
6348 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
6378 tcp_dooptions(struct tcpcb *tp, u_char *cp0 __counted_by(cnt0), int cnt0, struct tcphdr *th, in tcp_dooptions()
6554 tcp_pulloutofband(struct socket *so, struct tcphdr *th, struct mbuf *m, int off) in tcp_pulloutofband()
6708 tcp_compute_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rtt()
6753 tcp_compute_rcv_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rcv_rtt()
7116 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mss()
7307 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mssopt()
7351 tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_partial_ack()
7749 tcp_input_checksum(int af, struct mbuf *m, struct tcphdr *th, int off, int tlen) in tcp_input_checksum()