Home
last modified time | relevance | path

Searched refs:has_ipv4 (Results 1 – 16 of 16) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dsocket-helpers.c135 int socket_check_protocol_support(bool *has_ipv4, bool *has_ipv6) in socket_check_protocol_support() argument
137 *has_ipv4 = *has_ipv6 = false; in socket_check_protocol_support()
144 *has_ipv4 = true; in socket_check_protocol_support()
H A Dtest-yank.c189 bool has_ipv4, has_ipv6; in main() local
196 if (socket_check_protocol_support(&has_ipv4, &has_ipv6) < 0) { in main()
201 if (!has_ipv4) { in main()
H A Dsocket-helpers.h33 int socket_check_protocol_support(bool *has_ipv4, bool *has_ipv6);
H A Dtest-util-sockets.c337 bool has_ipv4, has_ipv6; in main() local
349 if (socket_check_protocol_support(&has_ipv4, &has_ipv6) < 0) { in main()
354 if (has_ipv4) { in main()
H A Dtest-io-channel-socket.c565 bool has_ipv4, has_ipv6, has_afunix; in main() local
578 if (socket_check_protocol_support(&has_ipv4, &has_ipv6) < 0) { in main()
583 if (has_ipv4) { in main()
H A Dtest-char.c1469 bool has_ipv4, has_ipv6; in main() local
1476 if (socket_check_protocol_support(&has_ipv4, &has_ipv6) < 0) { in main()
1555 if (has_ipv4) { in main()
/openbmc/qemu/util/
H A Dqemu-sockets.c129 if (addr->has_ipv6 && addr->has_ipv4 && in inet_ai_family_from_address()
134 if ((addr->has_ipv6 && addr->ipv6) && (addr->has_ipv4 && addr->ipv4)) { in inet_ai_family_from_address()
151 if ((addr->has_ipv6 && addr->ipv6) || (addr->has_ipv4 && !addr->ipv4)) { in inet_ai_family_from_address()
154 if ((addr->has_ipv4 && addr->ipv4) || (addr->has_ipv6 && !addr->ipv6)) { in inet_ai_family_from_address()
180 ((!saddr->has_ipv4 && !saddr->has_ipv6) || in try_bind()
181 (saddr->has_ipv4 && saddr->ipv4 && in try_bind()
677 addr->has_ipv4 = true; in inet_parse()
1326 inet->has_ipv4 = inet->ipv4 = true; in socket_sockaddr_to_address_inet()
/openbmc/qemu/io/
H A Ddns-resolver.c121 .has_ipv4 = iaddr->has_ipv4, in qio_dns_resolver_lookup_sync_inet()
/openbmc/qemu/tests/qtest/
H A Dnetdev-socket.c497 bool has_ipv4, has_ipv6, has_afunix; in main() local
503 if (socket_check_protocol_support(&has_ipv4, &has_ipv6) < 0) { in main()
513 if (has_ipv4) { in main()
/openbmc/qemu/chardev/
H A Dchar-udp.c173 .has_ipv4 = qemu_opt_get(opts, "ipv4"), in qemu_chr_parse_udp()
H A Dchar-socket.c1535 .has_ipv4 = qemu_opt_get(opts, "ipv4"), in qemu_chr_parse_socket()
/openbmc/qemu/net/
H A Dslirp.c1194 if ((user->has_ipv6 && user->ipv6 && !user->has_ipv4) || in net_init_slirp()
1195 (user->has_ipv4 && !user->ipv4)) { in net_init_slirp()
1198 if ((user->has_ipv4 && user->ipv4 && !user->has_ipv6) || in net_init_slirp()
/openbmc/qemu/block/
H A Dgluster.c615 gsconf->u.inet.has_ipv4 = true; in qemu_gluster_parse_json()
625 if (gsconf->u.inet.has_ipv4 || gsconf->u.inet.has_ipv6) { in qemu_gluster_parse_json()
H A Dssh.c1307 if (s->inet->has_ipv4 || s->inet->has_ipv6 || s->inet->has_to || in ssh_refresh_filename()
H A Dnbd.c2050 if (!inet->has_ipv4 && !inet->has_ipv6 && !inet->has_to) { in nbd_refresh_filename()
/openbmc/qemu/ui/
H A Dvnc.c3721 bool has_ipv4, in vnc_display_get_address() argument
3812 inet->has_ipv4 = has_ipv4; in vnc_display_get_address()
3844 bool has_ipv4 = qemu_opt_get(opts, "ipv4"); in vnc_display_get_addresses() local
3865 has_ipv4, has_ipv6, in vnc_display_get_addresses()
3893 has_ipv4, has_ipv6, in vnc_display_get_addresses()