Brad Fitzpatrick
c31a7b1ab4
conn, device, tun: set CLOEXEC on fds
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
Signed-off-by: Jason A. Donenfeld <[email protected] >
2022-07-04 01:42:12 +02:00
Brad Fitzpatrick
82e0b734e5
ipc, rwcancel: compile on js/wasm
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
2021-10-20 14:50:05 -06:00
Brad Fitzpatrick
0f4809f366
tun: make NativeTun.Close well behaved, not crash on double close
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
2021-02-22 15:26:29 +01:00
Brad Fitzpatrick
fecb8f482a
README: bump document Go requirement to 1.16
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
2021-02-22 15:26:29 +01:00
Brad Fitzpatrick
8114c9db5f
device: reduce allocs in Device.IpcGetOperation
...
Plenty more to go, but a start:
name old time/op new time/op delta
UAPIGet-4 6.37µs ± 2% 5.56µs ± 1% -12.70% (p=0.000 n=8+8)
name old alloc/op new alloc/op delta
UAPIGet-4 1.98kB ± 0% 1.22kB ± 0% -38.71% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
UAPIGet-4 42.0 ± 0% 35.0 ± 0% -16.67% (p=0.000 n=10+10)
Signed-off-by: Brad Fitzpatrick <[email protected] >
2021-01-26 11:51:52 -08:00
Brad Fitzpatrick
23b2790aa0
conn: fix interface parameter name in Bind interface docs
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
2021-01-26 15:20:22 +01:00
Brad Fitzpatrick
e9edc16349
device: fix error shadowing before log print
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
2021-01-07 14:49:44 +01:00
Brad Fitzpatrick
58a8f05f50
tun/wintun/registry: fix Go 1.15 race/checkptr failure
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
[Jason: ran go mod tidy.]
Signed-off-by: Jason A. Donenfeld <[email protected] >
2020-10-21 18:26:10 +02:00
Brad Fitzpatrick
31b574ef99
device: remove some unnecessary unsafe
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
2020-07-15 06:59:44 +10:00
Brad Fitzpatrick
2fb0a712f0
tun: return a better error message if /dev/net/tun doesn't exist
...
It was just returning "no such file or directory" (the String of the
syscall.Errno returned by CreateTUN).
Signed-off-by: Brad Fitzpatrick <[email protected] >
2020-05-02 01:50:47 -06:00
Brad Fitzpatrick
85a45a9651
tun: fix data race on name field
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
2020-05-02 01:46:42 -06:00
Brad Fitzpatrick
abd287159e
tun: remove unused isUp method
...
Signed-off-by: Brad Fitzpatrick <[email protected] >
2020-05-02 01:46:42 -06:00