diff options
author | Laurent Vivier | 2022-10-21 11:09:06 +0200 |
---|---|---|
committer | Jason Wang | 2022-10-28 07:28:52 +0200 |
commit | 30e4226b78f888a75dade5a2cf1488f94da3a8db (patch) | |
tree | f3b06a2659b24b40b1c383609858bf9dfcf46613 /include | |
parent | vhost: Accept event idx flag (diff) | |
download | qemu-30e4226b78f888a75dade5a2cf1488f94da3a8db.tar.gz qemu-30e4226b78f888a75dade5a2cf1488f94da3a8db.tar.xz qemu-30e4226b78f888a75dade5a2cf1488f94da3a8db.zip |
net: introduce convert_host_port()
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/sockets.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index 036745e586..db4bedb6fa 100644 --- a/include/qemu/sockets.h +++ b/include/qemu/sockets.h @@ -65,6 +65,8 @@ void socket_listen_cleanup(int fd, Error **errp); int socket_dgram(SocketAddress *remote, SocketAddress *local, Error **errp); /* Old, ipv4 only bits. Don't use for new code. */ +int convert_host_port(struct sockaddr_in *saddr, const char *host, + const char *port, Error **errp); int parse_host_port(struct sockaddr_in *saddr, const char *str, Error **errp); int socket_init(void); |