Lines Matching refs:uhdr
58 struct udphdr *uhdr = NULL; in net_test_get_skb() local
91 uhdr = skb_put(skb, sizeof(*uhdr)); in net_test_get_skb()
108 uhdr->source = htons(attr->sport); in net_test_get_skb()
109 uhdr->dest = htons(attr->dport); in net_test_get_skb()
110 uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); in net_test_get_skb()
112 uhdr->len = htons(attr->max_size - in net_test_get_skb()
114 uhdr->check = 0; in net_test_get_skb()
128 iplen += sizeof(*uhdr); in net_test_get_skb()
180 struct udphdr *uhdr; in net_test_loopback_validate() local
221 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in net_test_loopback_validate()
222 if (uhdr->dest != htons(tpriv->packet->dport)) in net_test_loopback_validate()
225 shdr = (struct netsfhdr *)((u8 *)uhdr + sizeof(*uhdr)); in net_test_loopback_validate()