Home
last modified time | relevance | path

Searched refs:addrstr (Results 1 – 2 of 2) sorted by relevance

/qemu/tests/unit/
H A Dcrypto-tls-x509-helpers.c160 test_tls_get_ipaddr(const char *addrstr, in test_tls_get_ipaddr() argument
169 g_assert(getaddrinfo(addrstr, NULL, &hints, &res) == 0); in test_tls_get_ipaddr()
/qemu/ui/
H A Dvnc.c3716 static int vnc_display_get_address(const char *addrstr, in vnc_display_get_address() argument
3733 if (strncmp(addrstr, "unix:", 5) == 0) { in vnc_display_get_address()
3735 addr->u.q_unix.path = g_strdup(addrstr + 5); in vnc_display_get_address()
3748 port = strrchr(addrstr, ':'); in vnc_display_get_address()
3752 port = addrstr; in vnc_display_get_address()
3758 hostlen = port - addrstr; in vnc_display_get_address()
3768 if (hostlen && addrstr[0] == '[' && addrstr[hostlen - 1] == ']') { in vnc_display_get_address()
3769 inet->host = g_strndup(addrstr + 1, hostlen - 2); in vnc_display_get_address()
3771 inet->host = g_strndup(addrstr, hostlen); in vnc_display_get_address()
3776 if (g_str_equal(addrstr, "") || in vnc_display_get_address()
[all …]