QEMU uses obsolete gethostbyname and inet_aton rather than getaddrinfo
Bug #659351 reported by
Ben Jencks
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.
Changed in qemu: | |
assignee: | nobody → Jesse Larrew (jlarrew) |
status: | New → In Progress |
To post a comment you must log in.
Fixed by commit d5c5dac (use inet_listen( )/inet_ connect( ) to support ipv6 migration, 2012-05-11), released with QEMU 1.2.