Lines Matching refs:tcphdr

153 		if (len >= TCP_MSS_DEFAULT + sizeof(struct tcphdr) ||  in tcp_measure_rcv_mss()
159 (len >= TCP_MIN_MSS + sizeof(struct tcphdr) && in tcp_measure_rcv_mss()
263 static void tcp_ecn_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_synack()
269 static void tcp_ecn_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_syn()
275 static bool tcp_ecn_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_ecn_echo()
3702 const struct tcphdr *th = tcp_hdr(skb); in tcp_parse_options()
3703 int length = (th->doff * 4) - sizeof(struct tcphdr); in tcp_parse_options()
3808 static bool tcp_parse_aligned_timestamp(struct tcp_sock *tp, const struct tcphdr *th) in tcp_parse_aligned_timestamp()
3831 const struct tcphdr *th, struct tcp_sock *tp) in tcp_fast_parse_options()
3856 const u8 *tcp_parse_md5sig_option(const struct tcphdr *th) in tcp_parse_md5sig_option()
3916 const struct tcphdr *th = tcp_hdr(skb); in tcp_disordered_ack()
4993 static void tcp_check_urg(struct sock *sk, const struct tcphdr *th) in tcp_check_urg()
5059 static void tcp_urg(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th) in tcp_urg()
5132 const struct tcphdr *th, int syn_inerr) in tcp_validate_incoming()
5229 const struct tcphdr *th, unsigned int len) in tcp_rcv_established()
5272 if (tcp_header_len == sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) { in tcp_rcv_established()
5296 (sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) && in tcp_rcv_established()
5327 (sizeof(struct tcphdr) + in tcp_rcv_established()
5352 (sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) && in tcp_rcv_established()
5518 const struct tcphdr *th) in tcp_rcv_synsent_state_process()
5603 sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_rcv_synsent_state_process()
5607 tp->tcp_header_len = sizeof(struct tcphdr); in tcp_rcv_synsent_state_process()
5683 sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_rcv_synsent_state_process()
5685 tp->tcp_header_len = sizeof(struct tcphdr); in tcp_rcv_synsent_state_process()
5749 const struct tcphdr *th = tcp_hdr(skb); in tcp_rcv_state_process()
6045 const struct tcphdr *th = tcp_hdr(skb); in tcp_ecn_create_request()