This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: socat with IP6 support?


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

Attachment: pgp0jw_QC9Qo_.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]