Add utun support for gogoCLIENT

With some copy and paste work, it’s working now.

Utun support: utun works like OpenBSD’s tun. We need to take care of the first 4 bytes. That’s all.
Openssl: Since El Capitan, openssl headers are removed. So, use macports’s headers.

Code is on github https://github.com/evi1c/gogoc/commit/bd9af4101ac6134c90b61b01c78d140f68bae25e

Ref:
https://github.com/mafintosh/utun
http://www.newosxbook.com/src.jl?tree=listings&file=17-15-utun.c#main
http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2014-October/004126.html
https://github.com/breiter/vpnc
http://sourceforge.net/p/openvpn/mailman/openvpn-devel/thread/51C2C433.9070402%40rfc2549.org/#msg31071812

% sw_vers
ProductName: Mac OS X
ProductVersion: 10.11
BuildVersion: 15A284

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s