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