ndt-dev - Re: [ndt-dev] Re: Patch to improve IPv6
Subject: NDT-DEV email list created
List archive
- From: Dominic Hamon <>
- To: Dominic Hamon <>
- Cc: Kavitha Kumar <>, "" <>
- Subject: Re: [ndt-dev] Re: Patch to improve IPv6
- Date: Thu, 10 Jan 2013 14:33:03 -0800
Forgot the patch.
On Thu, Jan 10, 2013 at 2:32 PM, Dominic Hamon <> wrote:
Added comments to the patch attached. It's possible that it failed for you as the first host returned was invalid. This patch will no longer try every address, only the first IPv6 and then first IPv4.One of the defines controls whether IPv6 is compiled in to NDT. Would it be possible to default this to 'on' and remove the define from the codebase? It would simplify much of the logic in this file.On Wed, Jan 9, 2013 at 12:41 PM, Dominic Hamon <> wrote:
HiNo problem, I'll look at cleaning it up once I'm sure that it's working for you.I've tested on boxes that are both v4/v6 enabled and just v4 enabled and my test matrix was successful. I also had a colleague test and he confirmed.The logic is complicated due to the existing ifdefs regarding V6 availability - it would be much simpler if we could assume that v6 support should be built in, and then let the OS v6 availability dictate the feature being available. Is that something that you'd consider reasonable?Essentially, we first determine which family we want, then filter out the list of available families to those that match the request, then attempt connection preferring v6. In all cases we connect using inet_addr_any equivalents to ensure that v6 servers will accept connections from v4.On Wed, Jan 9, 2013 at 11:50 AM, Kavitha Kumar <> wrote:
Hi Dominic,
This patch didn't seem to work when I installed it. I tried out a few combinations of IP-version options at the web100srv and web100clt, and a complete list of the combinations I tried is attached alongwith.
Also, its somewhat difficult to follow the logic you have added. Is there a way you could clean up the ifdefs to make the code easier to read? The ternary operators and if-else's spread across the ifdefs are tough to debug. A few more comments may help too.
Thanks again, and sorry about the delayed response.Kavitha
From: [] on behalf of Dominic Hamon []
Sent: Thursday, January 03, 2013 2:56 PM
To: Dominic Hamon
Cc:
Subject: [ndt-dev] Re: Patch to improve IPv6
Sorry for the followup, but I found a bug in the last version.
Attached please find a better version.
On Fri, Dec 21, 2012 at 9:46 AM, Dominic Hamon <> wrote:
Hello
Please find attached a patch to improve IPv6 support in NDT. With this patch, if no address family is specified on the command line, web100srv will listen for both IPv4 and IPv6 connections (if supported). Similarly, clients will attempt to connect to either IPv4 or IPv6 servers if address family is not specified on the command line.
Thank you for your consideration.
Dominic Hamon | Measurement Lab
Attachment:
ndt.ipv4v6.patch
Description: Binary data
- [ndt-dev] Re: Patch to improve IPv6, Dominic Hamon, 01/03/2013
- RE: [ndt-dev] Re: Patch to improve IPv6, Kavitha Kumar, 01/09/2013
- Re: [ndt-dev] Re: Patch to improve IPv6, Dominic Hamon, 01/09/2013
- Re: [ndt-dev] Re: Patch to improve IPv6, Dominic Hamon, 01/10/2013
- Re: [ndt-dev] Re: Patch to improve IPv6, Dominic Hamon, 01/10/2013
- Re: [ndt-dev] Patch to improve IPv6, Aaron Brown, 01/15/2013
- Re: [ndt-dev] Patch to improve IPv6, Dominic Hamon, 01/23/2013
- Re: [ndt-dev] Patch to improve IPv6, Aaron Brown, 01/15/2013
- Re: [ndt-dev] Re: Patch to improve IPv6, Dominic Hamon, 01/10/2013
- Re: [ndt-dev] Re: Patch to improve IPv6, Dominic Hamon, 01/10/2013
- Re: [ndt-dev] Re: Patch to improve IPv6, Dominic Hamon, 01/09/2013
- RE: [ndt-dev] Re: Patch to improve IPv6, Kavitha Kumar, 01/09/2013
Archive powered by MHonArc 2.6.16.