Lines Matching refs:tcphdr
125 struct tcphdr tcp_savetcp;
282 static void tcp_dooptions(struct tcpcb *, u_char *, int, struct tcphdr *,
286 struct tcphdr *, struct mbuf *, int);
307 static void tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th);
309 struct tcphdr *th);
311 struct tcphdr *th);
312 static void tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th);
313 static void tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th,
340 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
564 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m, in tcp_reass()
949 IP6_EXTHDR_CHECK(m, *offp, sizeof(struct tcphdr), return IPPROTO_DONE); in tcp6_input()
1327 tcp_detect_bad_rexmt(struct tcpcb *tp, struct tcphdr *th, in tcp_detect_bad_rexmt()
1361 tcp_bad_rexmt_restore_state(struct tcpcb *tp, struct tcphdr *th) in tcp_bad_rexmt_restore_state()
1419 tcp_bad_rexmt_check(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to) in tcp_bad_rexmt_check()
1487 tcp_early_rexmt_check(struct tcpcb *tp, struct tcphdr *th) in tcp_early_rexmt_check()
1702 tcp_tfo_rcv_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_tfo_rcv_ack()
1722 tcp_update_window(struct tcpcb *tp, int thflags, struct tcphdr * th, in tcp_update_window()
1774 tcp_syn_data_valid(struct tcpcb *tp, struct tcphdr *tcp_hdr, int tlen) in tcp_syn_data_valid()
1905 struct tcphdr *th; in tcp_input()
1950 struct tcphdr saved_tcphdr = {}; in tcp_input()
1993 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2019 struct tcphdr *, th); in tcp_input()
2042 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2055 struct ip *, ip, struct tcpcb *, NULL, struct tcphdr *, th); in tcp_input()
2069 if (off < sizeof(struct tcphdr) || off > tlen) { in tcp_input()
2076 if (off > sizeof(struct tcphdr)) { in tcp_input()
2080 th = (struct tcphdr *)(void *)((caddr_t)ip6 + off0); in tcp_input()
2088 th = (struct tcphdr *)(void *)((caddr_t)ip + off0); in tcp_input()
2091 optlen = off - sizeof(struct tcphdr); in tcp_input()
3253 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5526 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5569 memcpy(&saved_tcphdr, th, sizeof(struct tcphdr)); in tcp_input()
5865 tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcphdr *th, in tcp_dooptions()
6019 tcp_pulloutofband(struct socket *so, struct tcphdr *th, struct mbuf *m, int off) in tcp_pulloutofband()
6173 tcp_compute_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rtt()
6218 tcp_compute_rcv_rtt(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th) in tcp_compute_rcv_rtt()
6580 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mss()
6773 min_protoh = isipv6 ? sizeof(struct ip6_hdr) + sizeof(struct tcphdr) in tcp_mssopt()
6814 tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th) in tcp_newreno_partial_ack()
7236 tcp_input_checksum(int af, struct mbuf *m, struct tcphdr *th, int off, int tlen) in tcp_input_checksum()