QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo
Public bug reported:
In several places, including the tcp migration code, qemu uses gethostbyname and inet_aton to construct a sockaddr_in. These should be replaced by the more modern getaddrinfo for both connect and accept, along with a loop to try all returned addrinfo structs on the connecting side. This would also allow migration over IPv6.
** Affects: qemu
Importance: Undecided
Status: New
Signature · 9 lines
QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo https://bugs.launchpad.net/bugs/659351 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: In several places, including the tcp migration code, qemu uses gethostbyname and inet_aton to construct a sockaddr_in. These should be replaced by the more modern getaddrinfo for both connect and accept, along with a loop to try all returned addrinfo structs on the connecting side. This would also allow migration over IPv6.
Fixed by commit d5c5dac (use inet_listen()/inet_connect() to support ipv6 migration, 2012-05-11), released with QEMU 1.2.
** Changed in: qemu
Status: In Progress => Fix Released
Signature · 19 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/659351 Title: QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo Status in QEMU: Fix Released Bug description: In several places, including the tcp migration code, qemu uses gethostbyname and inet_aton to construct a sockaddr_in. These should be replaced by the more modern getaddrinfo for both connect and accept, along with a loop to try all returned addrinfo structs on the connecting side. This would also allow migration over IPv6. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/659351/+subscriptions