]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/socket-util.h
socket-util: add more careful parsers for AF_VSOCK cid/port
[thirdparty/systemd.git] / src / basic / socket-util.h
index 032d73857ed7f43d790d3df9d070cac4148c7926..39a6677c12b4de89e477683a1e116c054601cf27 100644 (file)
@@ -374,6 +374,9 @@ int socket_get_mtu(int fd, int af, size_t *ret);
 
 int connect_unix_path(int fd, int dir_fd, const char *path);
 
+int vsock_parse_port(const char *s, unsigned *ret);
+int vsock_parse_cid(const char *s, unsigned *ret);
+
 /* Parses AF_UNIX and AF_VSOCK addresses. AF_INET[6] require some netlink calls, so it cannot be in
  * src/basic/ and is done from 'socket_local_address from src/shared/. Return -EPROTO in case of
  * protocol mismatch. */