From: Amit Shah <amit.shah@redhat.com>
To: Juan Quintela <quintela@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 0/3] Allow ipv6 for migration
Date: Wed, 23 Mar 2011 16:55:13 +0530 [thread overview]
Message-ID: <20110323112513.GB23466@amit-x200.redhat.com> (raw)
In-Reply-To: <cover.1300454243.git.quintela@redhat.com>
On (Fri) 18 Mar 2011 [14:22:47], Juan Quintela wrote:
> Hi
>
>
> v2:
> - create socket_set_reuseaddr() to have it different for
> Windows and everything else (Peter Maydell)
> - use strerror() instead of perror (Peter Maydell)
> - fprintf(): one of them removed, the other one ...
> it is complicated, would have to return two errors: getaddrinfo one
> and normal errno. Not feasible IMHO until we integrate all other users
> of getaddrinfo() and think of a nice API.
>
> v1.
>
> 1st patch moves migration to use getaddrinfo() instead of parse_host_port().
> This allows us to use ipv6 addresses. As an extra bonus, now we can use
> names from /etc/services.
>
> Code for net_socket_listen_init() and net_socket_connect_init() was
> almost identical to migration one, so also changed that ones.
> The difference were small based on how error codes were handled.
> After discussing with Anthony, it appears that the right ones are
> the migration ones.
>
> Tested (the migration code) with:
> - "tcp:foo:4444" ipv4 name
> - "tcp:foo6:4444" ipv6 name
> - "tcp:0:4444"
> - "tcp:foo6:iqobject" (this was an unused entry on my machine /etc/services)
> iqobject 48619/tcp # iqobject
> - "tcp::4444": let the kernel make a choice
>
> Please review.
ACK series.
A couple of whitespace issues; if you're fixing that, you can add my
acked-by to the git log.
Amit
prev parent reply other threads:[~2011-03-23 11:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 13:22 [Qemu-devel] [PATCH v2 0/3] Allow ipv6 for migration Juan Quintela
2011-03-18 13:22 ` [Qemu-devel] [PATCH 1/3] create socket_set_reuseaddr() Juan Quintela
2011-03-23 11:25 ` Amit Shah
2011-03-18 13:22 ` [Qemu-devel] [PATCH 2/3] Use getaddrinfo for migration Juan Quintela
2011-03-23 11:26 ` Amit Shah
2011-03-18 13:22 ` [Qemu-devel] [PATCH 3/3] net/socket: allow ipv6 for net_socket_listen_init and net_socket_connect_init Juan Quintela
2011-03-23 11:25 ` Amit Shah [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110323112513.GB23466@amit-x200.redhat.com \
--to=amit.shah@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).