www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/08/22:05:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=HjfiCHp0zaD3AZVirg36Fu3FgBZ2JNrL6Z5rL99JsQ7lR+qW3ckwj
Rrp+Tdp8zDU9nV8rwK/FSjLOy3llisfpNxC+a68VyF+QgkjuRX6DTmYv9GNolaUG
+D/lz7Npp1RX6QShBQkDUgxmjV3evxFvErqnJUM8xeWmZ6Dq1MtsIg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=x9y16zRV58q23JEBQ2iUshBLDJA=; b=xBC2o9xlg1iiCvaNwGLUNB78BIam
rTKmj0PiMd7edJ6y8V0gTDn3E7VXL0dKrS6QuYIcUQD+FFF/DLOH8YjzXjw58yYs
uqRHSSiUs8x6wrCTeyZCpoV1Oy8tPuXjBV4r9GecOrUgGqIOMHlVqiAe/8Az17hx
y+Fk1MU5z55CqJU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epa DOT gov>
Subject: Re: socat with IP6 support?
Date: Thu, 08 May 2014 22:05:15 -0400
Lines: 42
Message-ID: <vhdom9pj43vhf22gavk23ks6g2md18t1uc@4ax.com>
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>
Mime-Version: 1.0
X-Archive: encrypt
X-IsSubscribed: yes

> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019