socat with IP6 support?
Corinna Vinschen
corinna-cygwin@cygwin.com
Sat Jan 18 11:47:00 GMT 2014
On Jan 17 15:39, Aaron Humphrey wrote:
> 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.
Thanks. I added the ip6.h header nevertheless for the upcoming
Cygwin 1.7.28.
Andrew, any chance you could update the socat package to support
IPv6 as well?
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140118/e0cbae68/attachment.sig>
More information about the Cygwin
mailing list