Lines Matching refs:tcph
38 struct tcphdr *tcph = (void *)iph + iph->ihl * 4;
39 unsigned char *data = (unsigned char *) tcph + tcph->doff * 4;
42 u_int32_t datalen = tcplen - tcph->doff * 4;
52 NIPQUAD(iph->saddr), ntohs(tcph->source),
53 NIPQUAD(iph->daddr), ntohs(tcph->dest));
67 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4 + 5) {
73 if (tcp_v4_check(tcph, tcplen, iph->saddr, iph->daddr,
74 csum_partial((char *)tcph, tcplen, 0))) {
76 tcph, tcplen, NIPQUAD(iph->saddr),
99 exp->seq = ntohl(tcph->seq) + i;
153 struct tcphdr *tcph = (void *)iph + iph->ihl * 4;
154 unsigned char *data = (unsigned char *) tcph + tcph->doff * 4;
157 u_int32_t datalen = tcplen - tcph->doff * 4;
167 NIPQUAD(iph->saddr), ntohs(tcph->source),
168 NIPQUAD(iph->daddr), ntohs(tcph->dest));
182 if (tcplen < sizeof(struct tcphdr) || tcplen < tcph->doff * 4 + 5) {
188 if (tcp_v4_check(tcph, tcplen, iph->saddr, iph->daddr,
189 csum_partial((char *)tcph, tcplen, 0))) {
191 tcph, tcplen, NIPQUAD(iph->saddr),
203 if (data_port == tcph->source) {
212 info->seq[IP_CT_DIR_ORIGINAL] = ntohl(tcph->seq) + i;
226 exp->seq = ntohl(tcph->seq) + i;
252 if (data_port == tcph->dest) {
260 info->seq[IP_CT_DIR_REPLY] = ntohl(tcph->seq) + i;