From 9a29ae267cc4573f88f5d9871e2aa53ea201e873 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 22 Feb 2021 04:30:31 +0100 Subject: device: test up/down using virtual conn This prevents port clashing bugs. Signed-off-by: Jason A. Donenfeld --- tun/tuntest/tuntest.go | 1 - 1 file changed, 1 deletion(-) (limited to 'tun/tuntest') 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 -- cgit v1.2.3