This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: socat with IP6 support?
- From: Andrew Schulman <schulman dot andrew at epa dot gov>
- To: cygwin at cygwin dot com
- Date: Thu, 08 May 2014 22:05:15 -0400
- Subject: Re: socat with IP6 support?
- Authentication-results: sourceware.org; auth=none
- References: <52D9A0C9 dot 4080508 at etr-usa dot com> <20140117213255 dot GA1843 at ednor dot casa dot cgf dot cx> <20140117221946 dot GA22079 at calimero dot vinschen dot de> <CAF+jOM3YUtgtae5L=kTmaChYRGQYrp6yGg9H8CbFQ3GguW5-0Q at mail dot gmail dot com> <20140118114751 dot GC22079 at calimero dot vinschen dot de> <6nnpd9tm0hn3od1ch642flc0upuvr15jau at 4ax dot com> <20140120172758 dot GA2357 at calimero dot vinschen dot de> <r9mnm955ummb5mktvm8u4eds49eatpsjab at 4ax dot com> <20140508201034 dot GB2645 at calimero dot vinschen dot de>
> On May 8 15:23, Andrew Schulman wrote:
> > > On Jan 20 03:45, Andrew Schulman wrote:
> > > > 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
> >
> > I finally got back to this. I seem to have worked around the problem in
> > socat v2. I've uploaded new packages for 1.7 and 2 that have IPv6 support,
> > but that will need to be tested. Andrew
>
> I can do that in my local IPv6 setup, if you give me an easy example...
>
> Corinna
To copy file1 to file2 on the localhost, run:
socat tcp6-listen:7777 file2
to set up a listener, and:
socat tcp6:[::1]:7777 file1
to connect to the listener and transfer the file.
If you have two hosts, you could try the same, running the first command
on the server, and the second command substituting the ipv6 address of
the server in place of ::1.
--
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