summaryrefslogtreecommitdiffhomepage
path: root/tun/tuntest/tuntest.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-22 04:30:31 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-23 20:00:57 +0100
commit9a29ae267cc4573f88f5d9871e2aa53ea201e873 (patch)
tree178ac0efd5722db32eb2651d6e3cbeb58bd1e828 /tun/tuntest/tuntest.go
parent6603c05a4a48219faa7450a40ba766914590133a (diff)
device: test up/down using virtual conn
This prevents port clashing bugs. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/tuntest/tuntest.go')
-rw-r--r--tun/tuntest/tuntest.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/tun/tuntest/tuntest.go b/tun/tuntest/tuntest.go
index 80ccdf9..92aa9d8 100644
--- a/tun/tuntest/tuntest.go
+++ b/tun/tuntest/tuntest.go
@@ -79,7 +79,6 @@ func genICMPv4(payload []byte, dst, src net.IP) []byte {
return pkt
}
-// TODO(crawshaw): find a reusable home for this. package devicetest?
type ChannelTUN struct {
Inbound chan []byte // incoming packets, closed on TUN close
Outbound chan []byte // outbound packets, blocks forever on TUN close