X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; q=dns; s=default; b=gu
	lh4dQxXObz3kMwuCFfM5euTd5m+a+4msqXjeq1CEqdNyRdIprO12yHWmErtFkrR/
	66L1nIHdr0HAz10Zw2h579B9CCY6RljmATuYBposJr4+FhHlHn7Mmta5otkBwN6E
	X8m8GWjMcQK1OqgNvb6YGGm+K07nyrxfIVtrrpMHY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type; s=default; bh=gTIm3CZ7
	yd1CSqYnpulhagl7mL8=; b=KaQ1iWxmxnaJi8B2CqCinAKX6AUfKJzkVbT1RhMV
	f0IKM0EAYZc9bxT9jbzOGtW/Mm8nfQflfnlHt4FycHpOT5NEjEz99hbn7cJt0PLg
	A9ZblkgXsEOXk/1OQibVXw9DiuxWzrbt/xPtuY97nKqxZK8lIhl+vhjEY1mCmtg8
	GsY=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ve0-f176.google.com
MIME-Version: 1.0
X-Received: by 10.58.69.20 with SMTP id a20mr2341056veu.0.1389998358300; Fri, 17 Jan 2014 14:39:18 -0800 (PST)
In-Reply-To: <20140117221946.GA22079@calimero.vinschen.de>
References: <CAF+jOM1XK9d36w+FdRtd2q35yirEaVb0p0wNyteuWru4zTGWrA@mail.gmail.com>	<52D985D3.9070506@etr-usa.com>	<CAF+jOM3X96jE+2nXBbadstJf6ehKCk0ae9est+6wvX5G1VFupg@mail.gmail.com>	<52D9A0C9.4080508@etr-usa.com>	<20140117213255.GA1843@ednor.casa.cgf.cx>	<20140117221946.GA22079@calimero.vinschen.de>
Date: Fri, 17 Jan 2014 15:39:18 -0700
Message-ID: <CAF+jOM3YUtgtae5L=kTmaChYRGQYrp6yGg9H8CbFQ3GguW5-0Q@mail.gmail.com>
Subject: Re: socat with IP6 support?
From: Aaron Humphrey <alfvaen@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
X-IsSubscribed: yes

On Fri, Jan 17, 2014 at 3:19 PM, Corinna Vinschen wrote:
> Our ipv6 stuff is in cygwin/in6.h, which is included by cygwin/in.h,
> which in turn is included by netinet/in.h.

Ah, that explains it.

> We could fetch FreeBSDs netinet/ip6.h.  In contrast to Glibc's
> netinet/ip6.h it does not include netinet/in.h but we could add
> that.
>
> Aaron, if you copy this file:
>
> http://svnweb.freebsd.org/base/stable/10/sys/netinet/ip6.h?revision=256281&view=co
>
> into /usr/include/netinet, and perhaps add this patch:
>
> Index: netinet/ip6.h
> ===================================================================
> RCS file: /home/ncvs/src/sys/netinet/ip6.h,v
> retrieving revision 1.22
> diff -u -p -r1.22 ip6.h
> --- netinet/ip6.h       10 Apr 2013 00:26:22 -0000      1.22
> +++ netinet/ip6.h       17 Jan 2014 22:18:50 -0000
> @@ -64,6 +64,9 @@
>  #ifndef _NETINET_IP6_H_
>  #define _NETINET_IP6_H_
>
> +#include <inttypes.h>
> +#include <netinet/in.h>
> +
>  /*
>   * Definition for internet protocol version 6.
>   * RFC 2460
>
> can you build socat with IPv6 support out of the box and it actually
> works?

It did build and work just fine with the FreeBSD ip6.h file, with and
without the patch, but as I said, for all that socat uses the actual
ip6.h library, I could have put in a file empty except for the #define
and it would probably have worked just as well.  Other programs may,
of course, be slightly pickier.

Thank you all for your help in getting socat up and working with IPv6.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

