QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo

Bug #659351 reported by Ben Jencks
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Jesse Larrew

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.

Jesse Larrew (jlarrew)
Changed in qemu:
assignee: nobody → Jesse Larrew (jlarrew)
status: New → In Progress
Revision history for this message
Paolo Bonzini (bonzini) wrote :

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.