Home
last modified time | relevance | path

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

/net/core/
Dselftests.c60 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()
[all …]
/net/rxrpc/
Drxkad.c151 size_t shdr, buf_size, chunk; in rxkad_how_much_data() local
156 shdr = 0; in rxkad_how_much_data()
159 shdr = sizeof(struct rxkad_level1_hdr); in rxkad_how_much_data()
162 shdr = sizeof(struct rxkad_level2_hdr); in rxkad_how_much_data()
168 chunk = buf_size - shdr; in rxkad_how_much_data()
170 buf_size = round_up(shdr + remain, RXKAD_ALIGN); in rxkad_how_much_data()
175 *_offset = shdr; in rxkad_how_much_data()