Lines Matching refs:tcph
225 struct tcphdr *tcph;
229 tcph = skb_put(nskb, sizeof(struct tcphdr));
231 tcph->doff = sizeof(struct tcphdr)/4;
232 tcph->source = oth->dest;
233 tcph->dest = oth->source;
237 tcph->seq = oth->ack_seq;
238 tcph->ack_seq = 0;
241 tcph->ack_seq = htonl(ntohl(oth->seq) + oth->syn + oth->fin +
243 tcph->seq = 0;
247 ((u_int8_t *)tcph)[13] = 0;
248 tcph->rst = 1;
249 tcph->ack = needs_ack;
250 tcph->window = 0;
251 tcph->urg_ptr = 0;
252 tcph->check = 0;
255 tcph->check = csum_ipv6_magic(&ipv6_hdr(nskb)->saddr,
258 csum_partial(tcph,