Lines Matching refs:tcph
953 const struct tcphdr *tcph; in cake_get_tcphdr() local
992 tcph = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in cake_get_tcphdr()
993 if (!tcph || tcph->doff < 5) in cake_get_tcphdr()
997 min(__tcp_hdrlen(tcph), bufsize), buf); in cake_get_tcphdr()
1000 static const void *cake_get_tcpopt(const struct tcphdr *tcph, in cake_get_tcpopt() argument
1004 int length = __tcp_hdrlen(tcph) - sizeof(struct tcphdr); in cake_get_tcpopt()
1005 const u8 *ptr = (const u8 *)(tcph + 1); in cake_get_tcpopt()
1112 static void cake_tcph_get_tstamp(const struct tcphdr *tcph, in cake_tcph_get_tstamp() argument
1118 ptr = cake_get_tcpopt(tcph, TCPOPT_TIMESTAMP, &opsize); in cake_tcph_get_tstamp()
1126 static bool cake_tcph_may_drop(const struct tcphdr *tcph, in cake_tcph_may_drop() argument
1130 int length = __tcp_hdrlen(tcph) - sizeof(struct tcphdr); in cake_tcph_may_drop()
1131 const u8 *ptr = (const u8 *)(tcph + 1); in cake_tcph_may_drop()
1142 if (((tcp_flag_word(tcph) & in cake_tcph_may_drop()
1206 const struct tcphdr *tcph, *tcph_check; in cake_ack_filter() local
1220 tcph = cake_get_tcphdr(skb, _tcph, sizeof(_tcph)); in cake_ack_filter()
1222 if (!tcph) in cake_ack_filter()
1225 cake_tcph_get_tstamp(tcph, &tstamp, &tsecr); in cake_ack_filter()
1230 if ((tcp_flag_word(tcph) & in cake_ack_filter()
1250 tcph_check->source != tcph->source || in cake_ack_filter()
1251 tcph_check->dest != tcph->dest) in cake_ack_filter()
1294 after(ntohl(tcph_check->ack_seq), ntohl(tcph->ack_seq))) in cake_ack_filter()
1303 sack_comp = cake_tcph_sack_compare(tcph_check, tcph); in cake_ack_filter()
1306 (ntohl(tcph_check->ack_seq) == ntohl(tcph->ack_seq) && in cake_ack_filter()
1337 (elig_flags == (tcp_flag_word(tcph) & in cake_ack_filter()