aboutsummaryrefslogtreecommitdiffstats
path: root/tun_linux.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix integer conversionsJason A. Donenfeld2018-05-221-7/+1
|
* Rework freebsd supportJason A. Donenfeld2018-05-211-3/+3
|
* Close events channel when no status listenerJason A. Donenfeld2018-05-211-3/+7
|
* Close hack listener before closing channelJason A. Donenfeld2018-05-211-10/+14
|
* Fix race with closing event channelJason A. Donenfeld2018-05-201-2/+4
| | | | | There's still a tiny race on Linux, since the tun channel is written to from two places.
* Reduce the hack listener to once a secondJason A. Donenfeld2018-05-201-1/+1
|
* Add copyright headersMathias Hall-Andersen2018-05-191-0/+1
|
* Netlink sockets can't be shutdownJason A. Donenfeld2018-05-141-13/+39
|
* Clean moreJason A. Donenfeld2018-05-141-12/+13
|
* Shorthand for empty channelsJason A. Donenfeld2018-05-141-1/+1
|
* Smoother netlink shutdownJason A. Donenfeld2018-05-141-20/+29
|
* Ensure go routines can exitJason A. Donenfeld2018-05-141-48/+51
|
* Introduce rwcancelJason A. Donenfeld2018-05-141-66/+13
|
* Odds and endsJason A. Donenfeld2018-05-131-0/+1
|
* tun: simplify and combine creation logic on LinuxJason A. Donenfeld2018-05-051-46/+17
|
* StyleJason A. Donenfeld2018-05-051-1/+1
|
* tun: account for null termination on LinuxJason A. Donenfeld2018-05-051-1/+7
|
* global: Add SPDX tags and copyright headerJason A. Donenfeld2018-05-031-0/+5
| | | | Mathias should probably add his copyright headers to each file too.
* Clear src cache if route changes to new ifindexJason A. Donenfeld2018-04-271-2/+3
|
* Fix error handling and cleanup of netlink listenerJason A. Donenfeld2018-04-271-22/+29
|
* Check for correct first nibbleJason A. Donenfeld2018-04-201-1/+1
| | | | The code before assumed that the flow label was always zero.
* Signal using select and a pipe for bringing down TUN readerJason A. Donenfeld2018-04-201-9/+104
| | | | | | Waiting on resolution of these to fix in better way: - https://github.com/golang/go/issues/22939 - https://github.com/golang/go/issues/24331
* We can determine the interface name ourselvesJason A. Donenfeld2018-04-191-3/+7
|
* Allow determining nameJason A. Donenfeld2018-04-181-6/+19
|
* Support nopi modeJason A. Donenfeld2018-02-281-16/+27
|
* Close tun fd when bringing down tunnelJason A. Donenfeld2018-02-181-1/+1
|
* Reimplemented bind_rtmgrp in pure GoDominik Süß2018-02-131-40/+30
| | | | | | | | | Getting rid of the Cgo dependency for listing on netlink. Ported original patch from "syscall" to "golang.org/x/sys/unix". Signed-off-by: Dominik Süß <dominik.suess@outlook.at> Co-Authored-By: Mathias Hall-Andersen <mathias@hall-andersen.dk>
* Reverted event changesMathias Hall-Andersen2018-02-111-13/+12
| | | | This feature was not needed for Android, upon further inspection.
* Started migration to sub-packagesMathias Hall-Andersen2018-02-091-12/+13
|
* Align with go library layoutMathias Hall-Andersen2018-02-041-0/+377