Lines Matching refs:tcph
37 struct tcphdr *otcph, *tcph;
78 tcph = (struct tcphdr *)((u_int32_t*)nskb->nh.iph + nskb->nh.iph->ihl);
84 tmp_port = tcph->source;
85 tcph->source = tcph->dest;
86 tcph->dest = tmp_port;
89 tcph->doff = sizeof(struct tcphdr)/4;
93 if (tcph->ack) {
95 tcph->seq = otcph->ack_seq;
96 tcph->ack_seq = 0;
99 tcph->ack_seq = htonl(ntohl(otcph->seq) + otcph->syn + otcph->fin
101 tcph->seq = 0;
105 ((u_int8_t *)tcph)[13] = 0;
106 tcph->rst = 1;
107 tcph->ack = needs_ack;
109 tcph->window = 0;
110 tcph->urg_ptr = 0;
113 tcph->check = 0;
114 tcph->check = tcp_v4_check(tcph, sizeof(struct tcphdr),
117 csum_partial((char *)tcph,