Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-12 Thread Paolo Bonzini
On 12/10/2015 15:06, Sair, Umair wrote: > Paolo, thanks for the explanation :) > >> > Did you test the patch, and did it work for you? If so, it is customary >> > to reply with a line like "Tested by: Sair, Umair ". > Yes, it worked for me. Should I reply to the email containing the patch with

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-12 Thread Sair, Umair
Paolo, thanks for the explanation :) > Did you test the patch, and did it work for you? If so, it is customary to > reply with a line like "Tested by: Sair, Umair ". Yes, it worked for me. Should I reply to the email containing the patch with the above line? >> so I'll like to add one more thi

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-05 Thread Paolo Bonzini
On 05/10/2015 20:03, Sair, Umair wrote: >> The first if handles the "default to N" case, the second handles "default to >> Y", the (absent) else case handles "default to PF_UNSPEC". > > Can you please elaborate it. Also I am not understanding the reason for > inverting the values of addr->has_

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-05 Thread Paolo Bonzini
On 05/10/2015 20:03, Sair, Umair wrote: >> The first if handles the "default to N" case, the second handles "default to >> Y", the (absent) else case handles "default to PF_UNSPEC". > > Can you please elaborate it. Also I am not understanding the reason for > inverting the values of addr->has_

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-05 Thread Sair, Umair
> The first if handles the "default to N" case, the second handles "default to > Y", the (absent) else case handles "default to PF_UNSPEC". Can you please elaborate it. Also I am not understanding the reason for inverting the values of addr->has_ipv* in second if condition. I believe that the f

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-04 Thread Paolo Bonzini
On 03/10/2015 00:36, Peter Maydell wrote: > > I agree about the (!ipv4 || !ipv6) condition though. > The three states I listed above ought to correspond > to "qemu_opt not set", "qemu_opt set to false" and > "qemu_opt set to true", The problem is that the underlying QemuOpts-based code treats "qe

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-03 Thread Liviu Ionescu
> On 02 Oct 2015, at 21:20, Sair, Umair wrote: > >> On linux it always runs on IPv4 >> and on Windows, it always runs on IPv6. Can you please help me out in >> resolving this problem? I remember I had the same problem when building GNU ARM Eclipse QEMU. You can take a look at: https://githu

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-03 Thread Sair, Umair
If I am understanding correct, you are saying that we should set addr->has_ipv6 and addr->has_ipv4 to true in any case, then in my opinion we should simply ignore the value of addr->has_ipv* while evaluating the value of ipv4 and ipv6 variables in inet_addr_to_opts (bool ipv4 = addr->ipv4; bool

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-02 Thread Peter Maydell
On 2 October 2015 at 19:20, Sair, Umair wrote: > If I am understanding correct, you are saying that we should set > addr->has_ipv6 and addr->has_ipv4 to true in any case, then in my opinion we > should simply ignore the value of addr->has_ipv* while evaluating the value > of ipv4 and ipv6 varia

Re: [Qemu-devel] [Qemu-discuss] TCP options ipv4 and ipv6 have no effect

2015-10-02 Thread Peter Maydell
(looping in qemu-devel and Paolo) On 2 October 2015 at 17:54, Sair, Umair wrote: > I am working with qemu-2.4.0. I built it using mingw on Windows. I am having > a problem while connecting it to gdb. I figured out that qemu gdb server is > running on IPv6 whereas gdb tries to connect on IPv4. Thi