Commit graph

8 commits

Author SHA1 Message Date
Matthew Ellison
70591d2499
Simplifies Platform Specific Interface Creation
The interface `Config` object is now passed directly into each creation
function in order to more easily use additional options.

In addition, the linux and darwin parameters were split to better
capture different options for each platform.
2017-05-23 09:06:42 -04:00
Matthew Ellison
80f6655041
Removes Deprecated "New" Functions 2017-05-23 09:06:41 -04:00
lucus
b090a0ff67 Refined code and documentations. 2017-01-09 17:52:28 +09:00
Song Gao
37d6645a51 add new interface for init configuration (#15) 2017-01-08 19:29:40 -08:00
Song Gao
a7802d4a18 add darwin support for point-to-point TUN and update doc 2016-10-23 20:34:17 -07:00
Song Gao
6a76f249f6 use embeded elements instead or private field for /dev/net/tun
this makes it possible to get *os.File by using type assertion over
ReadWriteCloser.

resolves #7
2016-04-16 12:45:00 -05:00
Harshal Sheth
e3fcc2a155 Moved linux specific code to the syscalls_linux.go file. Also removed unneeded constants from the syscalls_other.go file. 2015-11-07 19:20:00 -05:00
Song Gao
4a028c3fe3 initial commit 2013-03-25 14:49:39 -05:00