Commit graph

64 commits

Author SHA1 Message Date
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
Song Gao
4a6164f5ed more logging in ipv4_test 2016-04-16 12:41:15 -05:00
Song Gao
dd043efd91 Merge pull request #5 from accense/rename_test_files
rename test files in accodance with golang's naming rule
2016-01-06 15:15:35 +08:00
KOJIMA Takanori
4ae5e83fb9 rename test files (fix https://github.com/songgao/water/issues/4) 2016-01-06 07:03:40 +00:00
Song Gao
e7338c341f Merge pull request #2 from songgao/songgao/add_tests
Add TAP test (ipv4 broadcast)
2015-11-21 11:38:51 -06:00
Song Gao
acc2c8967a return error instead of panic() 2015-11-19 19:28:05 +00:00
Song Gao
d8e4f41ac8 use time.Timer 2015-11-11 22:12:44 +00:00
Song Gao
965ca414a6 add ipv4 broadcast test 2015-11-08 22:10:12 +00:00
Song Gao
ecf657aba3 Merge pull request #1 from hsheth2/master
Multi-platform support
2015-11-07 19:11:34 -06:00
Harshal Sheth
606f940f3e Fixed small typo file in README 2015-11-07 19:21:28 -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
Harshal Sheth
d2ac4607bb Multi-platform support 2015-08-15 17:05:24 -04:00
Song Gao
36aebfeb35 changed license to BSD 2013-05-23 09:23:49 -07:00