[Openvpn-devel] [PATCH] TAP driver for Solaris patch

2010-09-06 Thread Kazuyoshi Aizawa
Hi all,

I attached a patch for OpenVPN 2.1.3 to support TAP driver for Solaris.
Also, you can find the patch as well as TAP driver here.
 
http://www.whiteboard.ne.jp/~admin2/tuntap/

Regards,

Kazuyoshi


patch.openvpn-2.1.3.tun.c
Description: Binary data


Re: [Openvpn-devel] feat_ipv6_payload problems on Solaris 10

2010-07-10 Thread Kazuyoshi Aizawa
Hi,

I'm happy to hear that the driver worked fine.
Please let me know if there's any problem on it.

Regards,

Kazuyoshi

2010/7/10 Gert Doering 

> Hi,
>
> On Sun, Jul 11, 2010 at 12:08:31AM +1200, Michal Ludvig wrote:
> > >> I'm having a problem with feat_ipv6_payload branch (checked out from
> git
> > >> yesterday). One end is Solaris 10 (sparc) and the other end is Linux.
> > > Which version of the tun driver are you using for Solaris?
> > >
> > > My test solaris machine (Solaris 10 on Sparc64, but not the very latest
> > > version) uses the driver from
> http://www.whiteboard.ne.jp/~admin2/tuntap/
> > > and IPv6 works fine there.  The web page says that this driver did not
> > > support IPv6 before 11/16/2009 - so maybe this is the problem.
> > That was it! Works now:
> >
> > [Linux] ~ # ping6 -n 2001:cafe::1
> > PING 2001:cafe::1(2001:cafe::1) 56 data bytes
> > 64 bytes from 2001:cafe::1: icmp_seq=343 ttl=255 time=54.3 ms
> > 64 bytes from 2001:cafe::1: icmp_seq=344 ttl=255 time=50.1 ms
> > ^C
>
> Cool :-) - congratulations!
>
> (And thanks for testing point-to-point tun mode - I assumed it would
> work, but it's still on my test-plan...)
>
> > I used to have CSWtun from Blastwave - it's labeled as version 1.1 as
> > well so I believed it was the right thing.
>
> Hmmm.  I wasn't aware that that one exists - but it might be worth a try
> to send them a note that they might want to do some updates.
>
> > Is there any way to check that the right module is loaded at runtime?
> > That may help avoid some confusion in the future...
>
> Good questions.  I don't know right now, but I'll try to find out.
>
> > (BTW is there any work in progress for a v6 transport?)
>
> Well, there's feat_ipv6_transport by jjo, and of course, the "allmerged"
> branch which has both v6 payload and v6 transport.  As far as I understand,
> the v6 transport stuff works on all "major" platforms supported by
> OpenVPN and generally gets the job done :-)
>
> gert
> --
> USENET is *not* the non-clickable part of WWW!
>   //
> www.muc.de/~gert/ 
> Gert Doering - Munich, Germany
> g...@greenie.muc.de
> fax: +49-89-35655025
> g...@net.informatik.tu-muenchen.de
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel
>
>


Re: [Openvpn-devel] [PATCH] TAP interface support for Solaris/OpenSolaris

2010-04-29 Thread Kazuyoshi Aizawa
Hi Gert,

Thank you for your support.
Please find attached patch with diff -uw.

Thanks,

Kazuyoshi

2010/4/29 Gert Doering :
> Hi again,
>
> On Thu, Apr 29, 2010 at 01:02:37PM +0900, Kazuyoshi Aizawa wrote:
>> I've attached a patch for tun.c which includes support for tap
>> interface for solaris/opensolaris.
>
> I've glanced through the patch, and there's also changes in the Win32
> part of the tun.c, for example this chunk:
>
>
> --- quote --
> @@ -,19 +3409,19 @@
>   bool ret = false;
>   const IP_ADAPTER_INDEX_MAP *inter = get_interface_info (adapter_index, &gc);
>
> -  if (inter)
> -    {
> -      DWORD status = IpRenewAddress ((IP_ADAPTER_INDEX_MAP *)inter);
> -      if (status == NO_ERROR)
> +      if (inter)
>        {
> -         msg (D_TUNTAP_INFO, "TAP: DHCP address renewal succeeded");
> -         ret = true;
> +         DWORD status = IpRenewAddress ((IP_ADAPTER_INDEX_MAP *)inter);
> +         if (status == NO_ERROR)
> +           {
> +             msg (D_TUNTAP_INFO, "TAP: DHCP address renewal succeeded");
> +             ret = true;
> +           }
> +         else
> +           msg (M_WARN, "WARNING: Failed to renew DHCP IP address lease on 
> TAP-Win32 adapter: %s (code=%u)",
> +                strerror_win32 (status, &gc),
> +                (unsigned int)status);
>        }
> -      else
> -       msg (M_WARN, "WARNING: Failed to renew DHCP IP address lease on 
> TAP-Win32 adapter: %s (code=%u)",
> -            strerror_win32 (status, &gc),
> -            (unsigned int)status);
> -    }
>   gc_free (&gc);
>   return ret;
>  }
> --- quote --
>
>
> From a first glance, this looks like "whitespace changes only".
>
> For easier review: would you be so kind and re-send your patch with
> "diff -uw" (-w = ignore white space changes)?
>
> thanks,
>
> gert
> --
> USENET is *not* the non-clickable part of WWW!
>                                                           //www.muc.de/~gert/
> Gert Doering - Munich, Germany                             g...@greenie.muc.de
> fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de
>
>


tun.c_tap_solaris.patch
Description: Binary data


[Openvpn-devel] [PATCH] TAP interface support for Solaris/OpenSolaris

2010-04-29 Thread Kazuyoshi Aizawa
Hi,

I've attached a patch for tun.c which includes support for tap
interface for solaris/opensolaris.
The code is based on OpneVPN 2.1.1. And it has a routine to
plumb/unplumb tap interface like ifconfig command.

tap driver for solarsi/opensolaris is here:
  http://www.whiteboard.ne.jp/~admin2/tuntap/

Thanks,

Kazuyoshi
---
Kazuyoshi Aizawa


tun.c_tap_solaris.patch
Description: Binary data


[Openvpn-devel] ipv6 support of tun for solaris/opensolaris

2009-11-19 Thread Kazuyoshi Aizawa
Hi,

I added ipv6 support to tun driver for solaris.
Full source tar ball and patch against original universal tun/tap driver is
available here.

 http://www.whiteboard.ne.jp/~admin2/tuntap/

In response to this change, I revised the patch against openvpn and set
'ipv6_explicitly_supported' to true. Please find attached patch.
The patch is based on OpenVPN 2.1_rc21, and it also includes code to handle
tap driver for solaris.
With above tun driver and attached patch, solaris/opensolaris is capable to
forward ipv6 packets through tun interface.

Thanks,

Kazuyoshi


patch.openvpn-2.1_rc21.tun.c
Description: Binary data


Re: [Openvpn-devel] Solaris questions

2009-05-02 Thread Kazuyoshi Aizawa
Hi Carsten,

Thank you for the notice.
It would be nice if solaris itself support tun/tap driver.
But at present, I believe my modified tun/tap driver still be usable
to work with openvpn.
Please try this if interesting, and let me know if you find any defects.

Thanks,

Kazuyoshi

2009/5/1 Carsten Menke :
> Kazuyoshi Aizawa wrote:
>>
>> Hi,
>>
>> I modified the build scripts of tun/tap driver for Solaris and
>> uploaded it to web site below.
>>
> I've filed a feature request in the solaris bug database some time
> ago concerning adding support for the tun/tap driver, so maybe you
> also leave your comments there, too. I've added your post to the
> RFE already
>
> the url is
>
> http://defect.opensolaris.org/bz/show_bug.cgi?id=6220
>
> NOTE: The status CLOSED: TRACKEDINBUGSTER means that this
> RFE is tracked in the sun internal bug database, so there is still
> hope that this will be added to solaris :-)
>
>
>
> --
> "There are two major products that came out of Berkeley: LSD and UNIX.
>  We don't believe this to be a coincidence." --Jeremy S. Anderson
>
>



Re: [Openvpn-devel] Solaris questions

2009-04-30 Thread Kazuyoshi Aizawa
Hi,

I modified the build scripts of tun/tap driver for Solaris and
uploaded it to web site below.

  http://www.whiteboard.ne.jp/~admin2/tuntap/

Now, it is capable ..
   to build 32bit module on 64bit environment by using --disable-64bit
option to configure script.
   to checks if ld command is GNU ld or Solaris bundled ld. And then
appends appropriate option for GNU ld.
   to specify target install directory using DESTDIR macro to make command.

Thanks Victor, for the info and help.

Kazuyoshi



Re: [Openvpn-devel] Solaris questions

2009-04-26 Thread Kazuyoshi Aizawa
Hi Victor,

Thank you very much for the patch and info.
It is really helpful.
I intend to apply it to my script.
And I'll consider to provide tun.c as a patch.

Thanks,

Kazuyoshi

2009/4/27 Victor Wagner :
> On 2009.04.26 at 18:39:46 +0400, Victor Wagner wrote:
>
>> Of course. See attached patch (configure.patch).
>
> Unfortunately, I've send untested patch. I've checked configure
> invocation, but was too haste to check whether produced Makefile would
> work.
>
> Now there is tested patch.
>
> Only thing is that to do make install without root rights (which is
> common thing when building package and installing into temporary
> directory) you need /usr/ucb/install from SUNscpu package.
>
> Either included install-sh or GNU install from sunfreeware fails for
> unability to chown files.
>
> With this patch I've been able to build package for
> Solaris 8,9,10 both i386 and sparc. And all Sparc packages and 10/intel
> contain both 64-bit and 32-bit drivers.
>
> I do not attach packaging Makefile yet, becouse it depends on my
> solaris packaging scripts, which are not published anywhere.
>
>
>
> --
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ___
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel
>
>



Re: [Openvpn-devel] Solaris questions

2009-04-25 Thread Kazuyoshi Aizawa
Hi Victor,

Could you please post the script once you have built drivers for your package?
So that I can update my script as well.
I've wanted to make script to be capable to build drivers on various
platforms. But I don't have enough systems which can use for test.
So if you would share your information, it would be appreciated.

Thanks,

Kazuyoshi

2009/4/25 Victor Wagner :
> On 2009.04.24 at 07:47:54 -0700, Jonathan Petersson wrote:
>
>> Hi Victor,
>>
>> I haven't tried this myself and this guide is mainly for OpenSolaris, but:
>> http://blogs.reucon.com/srt/2008/12/17/installing_openvpn_on_opensolaris_2008_11.html
>
> There is nothing particulary  interesting here, except than linker
> switches for GNU ld (and I use Solaris LD anyway)
>
>> The issue you're seeing with the driver can be remediated by using this 
>> patch:
>> http://www.whiteboard.ne.jp/~admin2/tuntap/
>
> I know of this updated driver. Unfortunately I haven't figured out way
> how to build 32-bit version of this driver on 64-bit machine. (I almost
> forgot autoconf language and would have to dig into docs for few hours
> to remember enough of it to add something like --disable-64bit).
>
> And my task is to build a package which can be installed on any machine.
> So, I have to build both versions of driver on systems which
> support 64 bit.
>
>
>
> --
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensign option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ___
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel
>
>