socat with IP6 support?

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jan 20 17:28:00 GMT 2014


On Jan 20 03:45, Andrew Schulman wrote:
> > Thanks.  I added the ip6.h header nevertheless for the upcoming
> > Cygwin 1.7.28.
> 
> This seems to work fine for socat, but for socat-debuginfo 2.0.0-b6, the
> build fails because IPV6_DSTOPTS is undefined.

I don't quite understand this.  socat-debuginfo is just a by-product of
building socat.  How can building socat work but building debuginfo fail?!?

> Cygwin doesn't seem to
> define IPV6_DSTOPTS.  In Ubuntu, it's defined in
> /usr/include/linux/in6.h (value 59), along with a whole bunch of other
> IPv6 socket options.
> 
> I'm not sure what the best solution is here.  I could define it locally,
> but would it be better for Cygwin to bring in the missing definitions?

I don't think so.  I checked the available options on Windows again,
and IPV6_DSTOPTS is not supported.  I applied a small patch a few
minutes ago to add a few socket options our headers were missing,
but there are still a lot of Linux socket options not supported on
Windows which hinders CYgwin to support them.

Any chance you could tweak this piece of code to be built only
if IPV6_DSTOPTS is defined?


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/20140120/6b05f645/attachment.sig>


More information about the Cygwin mailing list