Lines Matching refs:tcphdr

151 		if (len >= TCP_MSS_DEFAULT + sizeof(struct tcphdr) ||  in tcp_measure_rcv_mss()
157 (len >= TCP_MIN_MSS + sizeof(struct tcphdr) && in tcp_measure_rcv_mss()
259 static void tcp_ecn_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_synack()
265 static void tcp_ecn_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_syn()
271 static bool tcp_ecn_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th) in tcp_ecn_rcv_ecn_echo()
3653 const struct tcphdr *th = tcp_hdr(skb); in tcp_parse_options()
3654 int length = (th->doff * 4) - sizeof(struct tcphdr); in tcp_parse_options()
3759 static bool tcp_parse_aligned_timestamp(struct tcp_sock *tp, const struct tcphdr *th) in tcp_parse_aligned_timestamp()
3782 const struct tcphdr *th, struct tcp_sock *tp) in tcp_fast_parse_options()
3807 const u8 *tcp_parse_md5sig_option(const struct tcphdr *th) in tcp_parse_md5sig_option()
3867 const struct tcphdr *th = tcp_hdr(skb); in tcp_disordered_ack()
4945 static void tcp_check_urg(struct sock *sk, const struct tcphdr *th) in tcp_check_urg()
5011 static void tcp_urg(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th) in tcp_urg()
5084 const struct tcphdr *th, int syn_inerr) in tcp_validate_incoming()
5181 const struct tcphdr *th, unsigned int len) in tcp_rcv_established()
5224 if (tcp_header_len == sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) { in tcp_rcv_established()
5248 (sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) && in tcp_rcv_established()
5279 (sizeof(struct tcphdr) + in tcp_rcv_established()
5304 (sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) && in tcp_rcv_established()
5470 const struct tcphdr *th, unsigned int len) in tcp_rcv_synsent_state_process()
5555 sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_rcv_synsent_state_process()
5559 tp->tcp_header_len = sizeof(struct tcphdr); in tcp_rcv_synsent_state_process()
5635 sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_rcv_synsent_state_process()
5637 tp->tcp_header_len = sizeof(struct tcphdr); in tcp_rcv_synsent_state_process()
5698 const struct tcphdr *th, unsigned int len) in tcp_rcv_state_process()
5998 const struct tcphdr *th = tcp_hdr(skb); in tcp_ecn_create_request()