Commit graph

104 commits

Author SHA1 Message Date
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
Song Gao
0195689109 added some functions for TAP that detect whether a MAC address is a broadcast or IPv4 multicast address 2013-03-30 19:51:57 -05:00
Song Gao
06bc3cd87f waterutil: doc.go: added packet format diagrams 2013-03-26 09:58:11 -05:00
Song Gao
f2108081c5 waterutil: doc.go: added packet format diagrams 2013-03-26 09:55:48 -05:00
Song Gao
1c41478c90 doc.go 2013-03-26 08:47:37 -05:00
Song Gao
3870acb2a0 doc.go 2013-03-26 08:45:24 -05:00
Song Gao
1f89aa80c3 doc.go 2013-03-26 08:42:37 -05:00
Song Gao
ae9992abd1 README.md: license and alternatives 2013-03-25 20:53:09 -05:00
Song Gao
9327ab30fe README.md 2013-03-25 20:41:03 -05:00
Song Gao
bdec7545ba README.md 2013-03-25 15:12:10 -05:00
Song Gao
0efe1df764 README.md 2013-03-25 15:10:49 -05:00