Lines Matching defs:tcph
43 struct tcphdr otcph, *tcph;
132 tcph = (struct tcphdr *)skb_put(nskb, sizeof(struct tcphdr));
134 tcph->doff = sizeof(struct tcphdr)/4;
135 tcph->source = otcph.dest;
136 tcph->dest = otcph.source;
140 tcph->seq = otcph.ack_seq;
141 tcph->ack_seq = 0;
144 tcph->ack_seq = htonl(ntohl(otcph.seq) + otcph.syn + otcph.fin
146 tcph->seq = 0;
150 ((u_int8_t *)tcph)[13] = 0;
151 tcph->rst = 1;
152 tcph->ack = needs_ack;
153 tcph->window = 0;
154 tcph->urg_ptr = 0;
155 tcph->check = 0;
158 tcph->check = csum_ipv6_magic(&ipv6_hdr(nskb)->saddr,
161 csum_partial(tcph,