Lines Matching defs:thdr
59 struct tcphdr *thdr = NULL;
89 thdr = skb_put(skb, sizeof(*thdr));
103 thdr->source = htons(attr->sport);
104 thdr->dest = htons(attr->dport);
105 thdr->doff = sizeof(struct tcphdr) / 4;
106 thdr->check = 0;
126 iplen += sizeof(*thdr);
155 thdr->check = ~tcp_v4_check(skb->len, ihdr->saddr,
181 struct tcphdr *thdr;
212 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl);
213 if (thdr->dest != htons(tpriv->packet->dport))
216 shdr = (struct netsfhdr *)((u8 *)thdr + sizeof(*thdr));