From: Eric Blake <eblake@redhat.com>
To: indiffPig@126.com, mdroth@linux.vnet.ibm.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qga:windows os lost ip when network nic change pic order
Date: Tue, 27 Jun 2017 16:14:57 -0500 [thread overview]
Message-ID: <07f317b7-906e-dc8b-feb0-62e4788b637f@redhat.com> (raw)
In-Reply-To: <1498282754-2573-1-git-send-email-indiffPig@126.com>
[-- Attachment #1: Type: text/plain, Size: 1981 bytes --]
On 06/24/2017 12:39 AM, indiffPig@126.com wrote:
> From: "yin.zuowei" <indiffPig@126.com>
>
> Signed-off-by: yin.zuowei <indiffPig@126.com>
>
> bug description: In the windows virtual machine, if there are multiple network cards, the hypothesis is that A/B/C is equipped with a different IP address. Once you delete a B card in the middle and restart the virtual machine, you will find that the A/C of the network card IP has been confused, and the IP of the C network card has become the address of B, and the service has been interrupted. So we did a IP recovery function in qga.This is a serious problem that can lead to business disruption. If you have a better plan, we would like to offer it to you.
> ---
> qga/restoreIp.cpp | 1848 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 1848 insertions(+)
> create mode 100755 qga/restoreIp.cpp
>
> diff --git a/qga/restoreIp.cpp b/qga/restoreIp.cpp
> new file mode 100755
> index 0000000..2382136
> --- /dev/null
> +++ b/qga/restoreIp.cpp
> @@ -0,0 +1,1848 @@
> +// restoreIp.cpp : �������̨Ӧ�ó������ڵ㡣
Your mail header said:
> Content-Type: text/plain; charset=yes
which looks like a bug with your git settings (typically, it should be
charset=UTF-8). Much of the message didn't render for me (not sure if
it lack of fonts on my end, or if it really was garbled en route rather
than being valid UTF-8 round-trip). But we much prefer /* */ comments
over // (even in C++ code), and prefer those comments to be in English.
> +//#pragma comment(lib,"iphlpapi.lib")
Dead code?
> +
> +/*Ҫע�⣬����unicode�� memcpy����������Ҫʹ��XXX_LEN * sizeof(TCHAR)*/
More encoding awkwardness.
It's hard to review the patch when the content is difficult to read.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2017-06-27 21:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-24 5:39 [Qemu-devel] [PATCH] qga:windows os lost ip when network nic change pic order indiffPig
2017-06-27 21:14 ` Eric Blake [this message]
2017-06-28 12:16 ` indiffpig
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=07f317b7-906e-dc8b-feb0-62e4788b637f@redhat.com \
--to=eblake@redhat.com \
--cc=indiffPig@126.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/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).