Home
last modified time | relevance | path

Searched refs:thdr (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c64 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()
[all …]
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_io.c1561 struct tls_hdr *thdr = (struct tls_hdr *)skb->data; in chtls_pt_recvmsg() local
1565 sizeof(thdr->type), &thdr->type); in chtls_pt_recvmsg()
1567 if (cerr && thdr->type != TLS_RECORD_TYPE_DATA) { in chtls_pt_recvmsg()