qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qga:windows os lost ip when network nic change


From: indiffpig
Subject: Re: [Qemu-devel] [PATCH] qga:windows os lost ip when network nic change pic order
Date: Wed, 28 Jun 2017 20:16:07 +0800 (CST)

That's true. Let me confirm to you whether this problem exists or whether there 
are any solutions already available. If so, I would like you to tell me the 
existing solution. My patch comes from the company code, and the code is 
long.The notes are written in Chinese. We work too much and don't have much 
spare time. If you are sure there is a problem and need to be resolved, I would 
like to take the time to refine the code.








At 2017-06-28 05:14:57, "Eric Blake" <address@hidden> wrote:
>On 06/24/2017 12:39 AM, address@hidden wrote:
>> From: "yin.zuowei" <address@hidden>
>> 
>> Signed-off-by: yin.zuowei <address@hidden>
>> 
>> 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
>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]