mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 19:18:23 +00:00
net: Make inet_strfamily() public
So that it can be used by other subsystems. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
a1829205a5
commit
c9c4b34ed5
@@ -91,7 +91,7 @@ static void inet_setport(struct addrinfo *e, int port)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *inet_strfamily(int family)
|
const char *inet_strfamily(int family)
|
||||||
{
|
{
|
||||||
switch (family) {
|
switch (family) {
|
||||||
case PF_INET6: return "ipv6";
|
case PF_INET6: return "ipv6";
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ int inet_listen(const char *str, char *ostr, int olen,
|
|||||||
int inet_connect_opts(QemuOpts *opts);
|
int inet_connect_opts(QemuOpts *opts);
|
||||||
int inet_connect(const char *str, int socktype);
|
int inet_connect(const char *str, int socktype);
|
||||||
int inet_dgram_opts(QemuOpts *opts);
|
int inet_dgram_opts(QemuOpts *opts);
|
||||||
|
const char *inet_strfamily(int family);
|
||||||
|
|
||||||
int unix_listen_opts(QemuOpts *opts);
|
int unix_listen_opts(QemuOpts *opts);
|
||||||
int unix_listen(const char *path, char *ostr, int olen);
|
int unix_listen(const char *path, char *ostr, int olen);
|
||||||
|
|||||||
Reference in New Issue
Block a user