Lines Matching defs:th
772 const struct tcphdr *th;
778 th = skb_header_pointer(skb, dataoff, sizeof(_tcph), &_tcph);
779 if (th == NULL) {
787 if (th->doff*4 < sizeof(struct tcphdr) || tcplen < th->doff*4) {
807 tcpflags = (tcp_flag_byte(th) & ~(TCPHDR_ECE|TCPHDR_CWR|TCPHDR_PSH));
830 const struct tcphdr *th;
835 th = skb_header_pointer(skb, dataoff, sizeof(_tcph), &_tcph);
836 BUG_ON(th == NULL);
841 index = get_conntrack_index(th);
896 && ntohl(th->ack_seq) == ct->proto.tcp.last_end) {
922 ct->proto.tcp.last_seq = ntohl(th->seq);
924 segment_seq_plus_len(ntohl(th->seq), skb->len, dataoff, th);
925 ct->proto.tcp.last_win = ntohs(th->window);
937 tcp_options(skb, dataoff, th, &seen);
956 dir, get_conntrack_index(th), old_state);
965 && before(ntohl(th->seq), ct->proto.tcp.seen[!dir].td_maxack)) {
978 && ntohl(th->ack_seq) == ct->proto.tcp.last_end) {
1000 if (th->fin || th->rst) {
1009 skb, dataoff, th, pf)) {
1021 (th->syn ? 1 : 0), (th->ack ? 1 : 0),
1022 (th->fin ? 1 : 0), (th->rst ? 1 : 0),
1049 if (th->rst) {
1073 const struct tcphdr *th;
1078 th = skb_header_pointer(skb, dataoff, sizeof(_tcph), &_tcph);
1079 BUG_ON(th == NULL);
1083 = tcp_conntracks[0][get_conntrack_index(th)]
1095 segment_seq_plus_len(ntohl(th->seq), skb->len,
1096 dataoff, th);
1097 ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window);
1103 tcp_options(skb, dataoff, th, &ct->proto.tcp.seen[0]);
1115 segment_seq_plus_len(ntohl(th->seq), skb->len,
1116 dataoff, th);
1117 ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window);