Lines Matching refs:tcphdr

278 static void tcp_dooptions(struct tcpcb *, u_char *, int, 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()
1701 tcp_tfo_rcv_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_tfo_rcv_ack()
1721 tcp_update_window(struct tcpcb *tp, int thflags, struct tcphdr * th, in tcp_update_window()
1767 tcp_syn_data_valid(struct tcpcb *tp, struct tcphdr *tcp_hdr, int tlen) in tcp_syn_data_valid()
1974 tcp_process_accecn(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th, in tcp_process_accecn()
2017 struct tcphdr *th; in tcp_input()
2061 struct tcphdr saved_tcphdr = {}; in tcp_input()
2105 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2131 struct tcphdr *, th); in tcp_input()
2154 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2167 struct ip *, ip, struct tcpcb *, NULL, struct tcphdr *, th); in tcp_input()
2181 if (off < sizeof(struct tcphdr) || off > tlen) { in tcp_input()
2188 if (off > sizeof(struct tcphdr)) { in tcp_input()
2192 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2200 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2203 optlen = off - sizeof(struct tcphdr); in tcp_input()
3400 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5796 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5839 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
6101 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
6105 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
6131 tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcphdr *th, in tcp_dooptions()
6300 tcp_pulloutofband(struct socket *so, struct tcphdr *th, struct mbuf *m, int off) in tcp_pulloutofband()
6454 tcp_compute_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rtt()
6499 tcp_compute_rcv_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rcv_rtt()
6860 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mss()
7051 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mssopt()
7095 tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_partial_ack()
7535 tcp_input_checksum(int af, struct mbuf *m, struct tcphdr *th, int off, int tlen) in tcp_input_checksum()