Lines Matching defs:thdr
64 struct tcphdr *thdr = NULL;
106 thdr = skb_put(skb, sizeof(*thdr));
150 thdr->source = htons(attr->sport);
151 thdr->dest = htons(attr->dport);
152 thdr->doff = sizeof(struct tcphdr) / 4;
153 thdr->check = 0;
173 iplen += sizeof(*thdr);
202 thdr->check = ~tcp_v4_check(skb->len, ihdr->saddr, ihdr->daddr, 0);
257 struct tcphdr *thdr;
290 thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl);
291 if (thdr->dest != htons(tpriv->packet->dport))
294 shdr = (struct stmmachdr *)((u8 *)thdr + sizeof(*thdr));