Home
last modified time | relevance | path

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

/net/vmw_vsock/
Dvirtio_transport_common.c118 struct virtio_vsock_hdr *pkt_hdr; in virtio_transport_build_skb() local
129 pkt_hdr = virtio_vsock_hdr(pkt); in virtio_transport_build_skb()
133 skb = alloc_skb(sizeof(*hdr) + sizeof(*pkt_hdr) + payload_len, in virtio_transport_build_skb()
141 hdr->src_cid = pkt_hdr->src_cid; in virtio_transport_build_skb()
142 hdr->src_port = pkt_hdr->src_port; in virtio_transport_build_skb()
143 hdr->dst_cid = pkt_hdr->dst_cid; in virtio_transport_build_skb()
144 hdr->dst_port = pkt_hdr->dst_port; in virtio_transport_build_skb()
147 hdr->len = cpu_to_le16(sizeof(*pkt_hdr)); in virtio_transport_build_skb()
150 switch (le16_to_cpu(pkt_hdr->op)) { in virtio_transport_build_skb()
171 skb_put_data(skb, pkt_hdr, sizeof(*pkt_hdr)); in virtio_transport_build_skb()