diff --git a/sys/dev/hyperv/hvsock/hv_sock.h b/sys/dev/hyperv/hvsock/hv_sock.h --- a/sys/dev/hyperv/hvsock/hv_sock.h +++ b/sys/dev/hyperv/hvsock/hv_sock.h @@ -67,25 +67,4 @@ struct vmpipe_proto_header vmpipe_pkt_hdr; } __packed; -struct hvs_pcb { - struct socket *so; /* Pointer to socket */ - struct sockaddr_hvs local_addr; - struct sockaddr_hvs remote_addr; - - struct hyperv_guid vm_srv_id; - struct hyperv_guid host_srv_id; - - struct vmbus_channel *chan; - /* Current packet header on rx ring */ - struct hvs_pkt_header hvs_pkt; - /* Available data in receive br in current packet */ - uint32_t recv_data_len; - /* offset in the packet */ - uint32_t recv_data_off; - bool rb_init; - /* Link lists for global bound and connected sockets */ - LIST_ENTRY(hvs_pcb) bound_next; - LIST_ENTRY(hvs_pcb) connected_next; -}; - #endif /* _HVSOCK_H */ diff --git a/sys/dev/hyperv/hvsock/hv_sock.c b/sys/dev/hyperv/hvsock/hv_sock.c --- a/sys/dev/hyperv/hvsock/hv_sock.c +++ b/sys/dev/hyperv/hvsock/hv_sock.c @@ -51,6 +51,27 @@ #include "hv_sock.h" +struct hvs_pcb { + struct socket *so; /* Pointer to socket */ + struct sockaddr_hvs local_addr; + struct sockaddr_hvs remote_addr; + + struct hyperv_guid vm_srv_id; + struct hyperv_guid host_srv_id; + + struct vmbus_channel *chan; + /* Current packet header on rx ring */ + struct hvs_pkt_header hvs_pkt; + /* Available data in receive br in current packet */ + uint32_t recv_data_len; + /* offset in the packet */ + uint32_t recv_data_off; + bool rb_init; + /* Link lists for global bound and connected sockets */ + LIST_ENTRY(hvs_pcb) bound_next; + LIST_ENTRY(hvs_pcb) connected_next; +}; + #define HVSOCK_DBG_NONE 0x0 #define HVSOCK_DBG_INFO 0x1 #define HVSOCK_DBG_ERR 0x2