Lines Matching defs:tc

193     struct tcphdr *tc;
195 tc = (struct tcphdr *)ip_next(pip);
199 if (tc->th_flags & TH_RST)
201 else if (tc->th_flags & TH_SYN)
205 if (tc->th_flags & (TH_FIN | TH_RST))
214 struct tcphdr *tc;
216 tc = (struct tcphdr *)ip_next(pip);
220 if (tc->th_flags & TH_RST)
222 else if (tc->th_flags & TH_SYN)
226 if (tc->th_flags & (TH_FIN | TH_RST))
352 struct tcphdr *tc;
361 tc = (struct tcphdr *)ip_next(ip);
370 tc->th_dport, tc->th_sport,
535 struct tcphdr *tc;
543 tc = (struct tcphdr *)ip_next(ip);
552 tc->th_dport, tc->th_sport,
860 struct tcphdr *tc;
864 tc = (struct tcphdr *)ip_next(pip);
867 tc->th_sport, tc->th_dport,
889 ad.sport = &tc->th_sport;
890 ad.dport = &tc->th_dport;
899 alias_port = tc->th_dport;
900 tc->th_dport = GetOriginalPort(lnk);
928 accumulate -= tc->th_dport;
935 accumulate += tc->th_sport;
936 tc->th_sport = proxy_port;
937 accumulate -= tc->th_sport;
947 accumulate += twowords(&tc->th_ack);
948 tc->th_ack = htonl(ntohl(tc->th_ack) - delta);
949 accumulate -= twowords(&tc->th_ack);
952 ADJUST_CHECKSUM(accumulate, tc->th_sum);
984 struct tcphdr *tc;
988 tc = (struct tcphdr *)ip_next(pip);
1001 dest_port = tc->th_dport;
1006 accumulate = tc->th_dport;
1007 tc->th_dport = proxy_server_port;
1008 accumulate -= tc->th_dport;
1011 ADJUST_CHECKSUM(accumulate, tc->th_sum);
1019 tc->th_sport, tc->th_dport,
1032 ad.sport = &tc->th_sport;
1033 ad.dport = &tc->th_dport;
1043 tc = (struct tcphdr *)ip_next(pip);
1057 accumulate = tc->th_sport;
1058 tc->th_sport = alias_port;
1059 accumulate -= tc->th_sport;
1069 accumulate += twowords(&tc->th_seq);
1070 tc->th_seq = htonl(ntohl(tc->th_seq) + delta);
1071 accumulate -= twowords(&tc->th_seq);
1074 ADJUST_CHECKSUM(accumulate, tc->th_sum);
1478 struct tcphdr *tc;
1491 tc = (struct tcphdr *)ip_next(pip);
1501 tc->th_dport, tc->th_sport,
1527 accumulate += tc->th_sport;
1529 ADJUST_CHECKSUM(accumulate, tc->th_sum);
1541 tc->th_sport = original_port;