socket-util: add helper for querying the local AF_VSOCK CID

This commit is contained in:
Lennart Poettering
2024-01-08 10:26:34 +01:00
parent 96f1f03c03
commit d3109d8de0
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -389,3 +389,5 @@ int socket_address_parse_vsock(SocketAddress *ret_address, const char *s);
* /proc/sys/net/core/somaxconn anyway, thus by setting this to unbounded we just make that sysctl file
* authoritative. */
#define SOMAXCONN_DELUXE INT_MAX
int vsock_get_local_cid(unsigned *ret);