Lines Matching refs:uhdr
63 struct udphdr *uhdr = NULL; in stmmac_test_get_udp_skb() local
108 uhdr = skb_put(skb, sizeof(*uhdr)); in stmmac_test_get_udp_skb()
155 uhdr->source = htons(attr->sport); in stmmac_test_get_udp_skb()
156 uhdr->dest = htons(attr->dport); in stmmac_test_get_udp_skb()
157 uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); in stmmac_test_get_udp_skb()
159 uhdr->len = htons(attr->max_size - in stmmac_test_get_udp_skb()
161 uhdr->check = 0; in stmmac_test_get_udp_skb()
175 iplen += sizeof(*uhdr); in stmmac_test_get_udp_skb()
256 struct udphdr *uhdr; in stmmac_test_loopback_validate() local
299 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_loopback_validate()
300 if (uhdr->dest != htons(tpriv->packet->dport)) in stmmac_test_loopback_validate()
303 shdr = (struct stmmachdr *)((u8 *)uhdr + sizeof(*uhdr)); in stmmac_test_loopback_validate()
843 struct udphdr *uhdr; in stmmac_test_vlan_validate() local
878 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_vlan_validate()
879 if (uhdr->dest != htons(tpriv->packet->dport)) in stmmac_test_vlan_validate()
882 shdr = (struct stmmachdr *)((u8 *)uhdr + sizeof(*uhdr)); in stmmac_test_vlan_validate()