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 May  8 22:05, Andrew Schulman wrote:
> > 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.

Testing this on 64 bit, with socat 1.7.2.4, and a Linux peer in both
directions works fine.

Do you need a test of the 2.0 test version as well?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgppa5DBKofHt.pgp
Description: PGP signature


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