Commit graph

76 commits

Author SHA1 Message Date
Tony Lu
1f021c893b Add Tony Lu to CONTRIBUTORS
Signed-off-by: Tony Lu <tonyluj@gmail.com>
2017-08-24 02:46:40 +08:00
Tony Lu
21ef3573b9 Add comment about MultiQueue
Signed-off-by: Tony Lu <tonyluj@gmail.com>
2017-08-24 02:45:01 +08:00
Tony Lu
9effada2e6 Use |=, instead of repeating flags
Signed-off-by: Tony Lu <tonyluj@gmail.com>
2017-08-24 00:18:25 +08:00
Tony Lu
c14726aabc Add flags cIFF_MULTI_QUEUE
Signed-off-by: Tony Lu <tonyluj@gmail.com>
2017-08-22 01:08:43 +08:00
Song Gao
99d07fc117 Merge pull request #25 from ArroyoNetworks/reattach
linux: Support for Persistent Devices and Setting Owner/Group
2017-05-24 09:52:02 -07:00
Matthew Ellison
937f6ba955
linux: Refactors Owner/Group to DevicePermissions 2017-05-23 15:00:10 -04:00
Matthew Ellison
15d1b3ddbb
linux: Re-adds NewTAP/NewTUN Functions 2017-05-23 14:59:22 -04:00
Matthew Ellison
771a72e2ea
Adds Arroyo Networks to Contributors File 2017-05-23 14:13:55 -04:00
Matthew Ellison
6a94337a59
Additional Cleanup (DRY) 2017-05-23 10:01:22 -04:00
Matthew Ellison
f9df1e79f2
Gofmt Cleanup 2017-05-23 09:43:05 -04:00
Matthew Ellison
3c9a2e9525
Updates to README with macOS Caveats 2017-05-23 09:06:42 -04:00
Matthew Ellison
497d14e427
linux: Rewords Documentation for Owner/Group Param 2017-05-23 09:06:42 -04:00
Matthew Ellison
c59a2fb87d
Removes Redundant Type Conversion 2017-05-23 09:06:42 -04:00
Matthew Ellison
80efdb6991
Adjusts Tests with Changes 2017-05-23 09:06:42 -04:00
Matthew Ellison
341e40fcee
Adds Build Tag Comments for Consistency 2017-05-23 09:06:42 -04:00
Matthew Ellison
ad8a32dbd3
linux: Adds Persistent Devs + Setting Owner/Group 2017-05-23 09:06:42 -04:00
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
Matthew Ellison
3f281b0517
Fixes Comment Typo 2017-05-23 09:06:41 -04:00
Song Gao
b85af41468 Merge pull request #24 from ArroyoNetworks/master
darwin: Detect IP Version for NULL Header on Write
2017-05-22 19:00:23 -07:00
Matthew Ellison
4112fb9cd7
darwin: Adds Check Empty Writes to TUN 2017-05-22 13:29:58 -04:00
Matthew Ellison
da7e7e0a3e
darwin: Detects IP Ver. for NULL Header on Write
Adds the ability for both IPv4 and IPv6 to be written to the TUN device.
2017-05-12 14:12:39 -04:00
Song Gao
66c5b2f72c fake IFF_NO_PI on macOS (thanks @eliezedeck ) (#21) 2017-03-20 22:40:07 -07:00
Song Gao
3bfb4db1dd Revert "fake IFF_NO_PI on macOS"
This reverts commit 3a225b3c2e.
2017-03-20 10:23:25 -07:00
Song Gao
3a225b3c2e fake IFF_NO_PI on macOS 2017-03-20 10:00:54 -07:00
Song Gao
ee9c96d609 Update README.md (resolves #16) 2017-01-22 17:49:06 -08:00
Song Gao
1a3940420d Merge pull request #13 from lixin9311/master
Add windows support.
2017-01-22 17:18:41 -08:00
lucus
933e95c058 Support new config method.
Refined code.
2017-01-09 18:55:36 +09:00
lucus
cde943e7d7 Format the error. 2017-01-09 17:52:28 +09:00
lucus
36e6baf409 Using Overlapped IO to avoid IO lock on Windows. 2017-01-09 17:52:28 +09:00
lucus
c3b4ba2cd8 Unexported the error. 2017-01-09 17:52:28 +09:00
lucus
b78551478a Fixed TUN issue. 2017-01-09 17:52:28 +09:00
lucus lee
4faff02c97 Update README.md 2017-01-09 17:52:28 +09:00
lucus
c4e1e4e0bc Updated README. 2017-01-09 17:52:28 +09:00
lucus
f3fdfd2ce8 Fixed some grammar errors. 2017-01-09 17:52:28 +09:00
lucus
e958f2ff69 Add lucus to contributors. 2017-01-09 17:52:28 +09:00
lucus
dd56f4a2c6 Add test code for windows. 2017-01-09 17:52:28 +09:00
lucus
b090a0ff67 Refined code and documentations. 2017-01-09 17:52:28 +09:00
lucus
c871518ca0 Add windows support.
To use it on windows, you need a tap driver, or just install OpenVPN.
2017-01-09 17:50:54 +09:00
Song Gao
37d6645a51 add new interface for init configuration (#15) 2017-01-08 19:29:40 -08:00
Song Gao
98078a8ac5 add CONTRIBUTORS 2016-11-30 20:54:53 -08:00
Song Gao
6c316400ad add LICENSE file 2016-11-30 20:38:29 -08:00
Song Gao
d44fb6ba41 Merge pull request #12 from daregod/master
Fix build constraints
2016-11-30 14:30:21 -08:00
daregod
393a203dd0 Build constraints adopted to documented one 2016-12-01 04:10:53 +06:00
daregod
ed1bc4e937 Fix build constraints 2016-12-01 03:30:46 +06: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
f87d2289c2 Merge pull request #8 from spurserh/master
add port accessors and modifiers for TCP/UDP
2016-05-10 11:11:24 -05:00
Sean Purser-Haskell
93f6384fdd Fix to use To4()
This will also produce a runtime error if non-IPv4 addresses are passed
in.
2016-05-10 11:30:32 +08:00
Sean Purser-Haskell
735b3a96b7 add port accessors and modifiers for TCP/UDP 2016-05-09 16:17:22 +08: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