Skip to Content.
Sympa Menu

ndt-dev - Re: [ndt-dev] Re: Patch to improve IPv6

Subject: NDT-DEV email list created

List archive

Re: [ndt-dev] Re: Patch to improve IPv6


Chronological Thread 
  • From: Dominic Hamon <>
  • To: Dominic Hamon <>
  • Cc: Kavitha Kumar <>, "" <>
  • Subject: Re: [ndt-dev] Re: Patch to improve IPv6
  • Date: Thu, 10 Jan 2013 14:32:38 -0800

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:
Hi

No 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






Archive powered by MHonArc 2.6.16.

Top of Page