From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13288 invoked by alias); 9 Feb 2014 09:53:19 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 13279 invoked by uid 89); 9 Feb 2014 09:53:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f42.google.com Received: from mail-la0-f42.google.com (HELO mail-la0-f42.google.com) (209.85.215.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 09 Feb 2014 09:53:16 +0000 Received: by mail-la0-f42.google.com with SMTP id hr13so3992398lab.1 for ; Sun, 09 Feb 2014 01:53:13 -0800 (PST) X-Received: by 10.112.56.237 with SMTP id d13mr16584192lbq.2.1391939592907; Sun, 09 Feb 2014 01:53:12 -0800 (PST) Received: from home.pavel.comp (paulfertser.info. [2001:470:26:54b:250:70ff:fee7:41ec]) by mx.google.com with ESMTPSA id ir3sm16300534lac.9.2014.02.09.01.53.10 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 09 Feb 2014 01:53:12 -0800 (PST) Received: (from pavel@localhost) by home.pavel.comp (8.14.5/8.13.8) id s199r8YI009012; Sun, 9 Feb 2014 13:53:08 +0400 Date: Sun, 09 Feb 2014 09:53:00 -0000 From: Paul Fertser To: Jan Kratochvil Cc: gdb-patches@sourceware.org, Kai Tietz Subject: Re: [PATCH] Add IPv6 support for remote TCP connections Message-ID: <20140209095308.GH2320@home.lan> References: <1391878435-19340-1-git-send-email-fercerpav@gmail.com> <20140209083056.GA32481@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140209083056.GA32481@host2.jankratochvil.net> User-Agent: Mutt/1.5.17 (2007-11-30) X-SW-Source: 2014-02/txt/msg00254.txt.bz2 Hi, On Sun, Feb 09, 2014 at 09:30:56AM +0100, Jan Kratochvil wrote: > and currently a different patch is on > jankratochvil/ipv6 > git://sourceware.org/git/archer.git > > It should also implement IPv6 in gdbserver (which you may not need). That was my other concern indeed. I am afraid your implementation relies on IPv4-mapped IPv6 which is not supported on OpenBSD at all (and also on older windows versions including wxp and w2k3) and can be disabled by system administrators on other systems. I think the way I modified net_open() behaviour matches the current code closer, i.e. in case the target didn't bind its socket yet in my version it'll will cycle through all the available addresses for 15 seconds and it looks like in your version it'll try connecting once to all potential addresses, get "connection refused" and give up. > The problem is that MinGW (=MS-Windows) port does not have getaddrinfo, there > are multiple way how to deal with it, the most clean should be via extending > gdb/gnulib/ : Do you take into account that there're currently two competing solutions for providing windows support: MinGW and MinGW-w64? The former declares tools availability as their aim, but the latter also strives for C99 and some POSIX compatibility. There's also Cygwin which is, of course, even closer to traditional systems. All major distros (that provide cross-compiling toolchain for windows) switched to MinGW-w64 by now. I've just tried cross-compiling code with getaddrinfo with mingw-w64 without any replacements and it was built (and run with wine) just fine. > But then mingw build fails. I tried to fix it in archer/jankratochvil/ipv6 > ( git://sourceware.org/git/archer.git ) but I got lost in what is the right way > so I guess you should do it from scratch on your own. I tried it more > a quick&dirty way but it probably needs a more clean thorough rework IMO. https://www.gnu.org/software/gnulib/manual/html_node/getaddrinfo.html implies all compatibility issues should be solved with it. So is it not so, and there's a bug in gnulib? > So due to buggy MinGW normal OSes still can't use IPv6 after 7 years while IPv4 > even no longer exists on some networks. Probably it's time to change that finally, especially given MinGW-w64 seems to work fine? -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercerpav@gmail.com