LE Manh Cuong
4d58427608
Linux set interface underlying fd to non-blocking
2019-01-12 14:07:38 -08:00
Song Gao
8c63d7a3c7
styling changes
2019-01-06 14:05:54 -08:00
Song Gao
da407cd8ff
Merge branch 'master' into patch-1
2017-09-27 11:52:14 -07:00
yinheli
affaa7322a
use uintptr instand of uint
...
thanks @songgao
2017-09-19 15:55:00 +08:00
ajee cai
56d7fa05b1
TAP interface doesn't work as expected
...
The flags should be set to TAP instead of TUN, then resolve my issue at https://github.com/songgao/water/issues/28 .
2017-08-31 23:45:14 +08:00
yinheli
deffbe3fa6
fix for mips compile
...
issue detail : https://github.com/golang/go/issues/21596
const is untyped int
2017-08-28 16:29:47 +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
Matthew Ellison
937f6ba955
linux: Refactors Owner/Group to DevicePermissions
2017-05-23 15:00:10 -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
c59a2fb87d
Removes Redundant Type Conversion
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
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