Lines Matching refs:shdr
60 struct netsfhdr *shdr; in net_test_get_skb() local
110 uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); in net_test_get_skb()
124 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in net_test_get_skb()
141 shdr = skb_put(skb, sizeof(*shdr)); in net_test_get_skb()
142 shdr->version = 0; in net_test_get_skb()
143 shdr->magic = cpu_to_be64(NET_TEST_PKT_MAGIC); in net_test_get_skb()
145 shdr->id = net_test_next_id++; in net_test_get_skb()
178 struct netsfhdr *shdr; in net_test_loopback_validate() local
216 shdr = (struct netsfhdr *)((u8 *)thdr + sizeof(*thdr)); in net_test_loopback_validate()
225 shdr = (struct netsfhdr *)((u8 *)uhdr + sizeof(*uhdr)); in net_test_loopback_validate()
228 if (shdr->magic != cpu_to_be64(NET_TEST_PKT_MAGIC)) in net_test_loopback_validate()
230 if (tpriv->packet->id != shdr->id) in net_test_loopback_validate()