#10 closed Patch submission ( fixed )

Solaris tun/tap support

Reported by: David Sommerseth Owned by: David Sommerseth
Priority: major Milestone: beta 2.2
Component: Networking Version: OpenVPN 2.2-beta / 2.2-RC (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: Solaris
Cc: gert@…

Description

​ http://thread.gmane.org/gmane.network.openvpn.devel/3660/focus=3667

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.

Attachments (2)

0001-Integrate-support-for-TAP-mode-on-Solaris-written-by.patch ​ ( 7.4 KB ) - added by Gert Döring 14 years ago .
patch for TAP on solaris, adapted to 2.2-beta3
0002-Make-topology-subnet-work-on-Solaris-ifconfig-route-.patch ​ ( 2.5 KB ) - added by Gert Döring 14 years ago .
make "topology subnet" work on Solaris, add on top of first patch

.zip

Change History (6)

Changed 14 years ago by Gert Döring

patch for TAP on solaris, adapted to 2.2-beta3

Changed 14 years ago by Gert Döring

make "topology subnet" work on Solaris, add on top of first patch

comment:1 Changed 14 years ago by Gert Döring

Cc: gert@… added
Milestone: → beta 2.2
Owner: changed from Gert Döring to David Sommerseth
Status: new → assigned
Version: 2.1.0 / 2.1.1 → 2.2-beta / 2.2-RC

Finally came around to integrate Kazuyoshi-san's patches into 2.2-beta3.

See mails on the OpenVPN-Devel list as of today - 2.2-beta3 now passes all my test cases (p2mp tun, p2pm tun/top subnet, p2pm tap) for IPv4 (happily ignoring the IPv6 stuff my test server wants to setup).

To dazo for integration into beta2.2 :-)

comment:2 Changed 14 years ago by Gert Döring

Oh, as a side note: I do not want to add code to 2.1.x, but the patches should apply "just fine" to 2.1.3 as well - just a bit different line offsets.

Regarding 2.3: I'll cherrypick that stuff into the feat_ipv6_payload branch, because the solaris-related tun.c code bits look very much different there, and including the patch in "other" branches would cause nasty merge conflicts for "allmerged"

comment:3 Changed 14 years ago by David Sommerseth

Severity: Patch Queue: New / awaiting ACK → Patch Queue: In progress

comment:4 Changed 14 years ago by David Sommerseth

Resolution: → fixed
Severity: Patch Queue: In progress → Not set (if unsure, select this one)
Status: assigned → closed

Applied to the feat_misc branch, to be merged into allmerged and
beta2.2. The ACK came privately to Gert and I got a private forward of
that ACK.

commit f0eac1a5979096c671b3674f9d80871f496d1da8
Author: Gert Doering <gert@…>
Date: Sat Oct 30 21:03:16 2010 +0200

Make "topology subnet" work on Solaris (ifconfig + route metric

changes by Kazuyoshi Aizawa, adding of local "connected subnet" route by me)

Tested on OpenSolaris? /i386, no impact for other TARGETs.

Signed-off-by: Gert Doering <gert@…>
Acked-by: Kazuyoshi Aizawa <admin2@…>
Signed-off-by: David Sommerseth <dazo@…>

commit 121755c2cb4891f8963ebcab5d61bc09dadf457c
Author: Gert Doering <gert@…>
Date: Fri Oct 29 17:41:53 2010 +0200

Integrate support for TAP mode on Solaris, written by Kazuyoshi

Aizawa <admin2@…>.

See also ​ http://www.whiteboard.ne.jp/~admin2/tuntap/

Signed-off-by: Gert Doering <gert@…>
Acked-by: Kazuyoshi Aizawa <admin2@…>
Signed-off-by: David Sommerseth <dazo@…>