mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 16:15:05 -04:00
VSOCK: export socket tables for sock_diag interface
The socket table symbols need to be exported from vsock.ko so that the vsock_diag.ko module will be able to traverse sockets. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
53954cf8c5
commit
44f209807e
@@ -27,6 +27,11 @@
|
||||
|
||||
#define LAST_RESERVED_PORT 1023
|
||||
|
||||
#define VSOCK_HASH_SIZE 251
|
||||
extern struct list_head vsock_bind_table[VSOCK_HASH_SIZE + 1];
|
||||
extern struct list_head vsock_connected_table[VSOCK_HASH_SIZE];
|
||||
extern spinlock_t vsock_table_lock;
|
||||
|
||||
#define vsock_sk(__sk) ((struct vsock_sock *)__sk)
|
||||
#define sk_vsock(__vsk) (&(__vsk)->sk)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user