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