tailscale/wgengine/tstun
Avery Pennarun 5041800ac6 wgengine/tstun/faketun: it's a null tunnel, not a loopback.
At some point faketun got implemented as a loopback (put a packet in
from wireguard, the same packet goes back to wireguard) which is not
useful. It's supposed to be an interface that just sinks all packets,
and then wgengine adds *only* and ICMP Echo responder as a layer on
top.

This caused extremely odd bugs on darwin, where the special case that
reinjects packets from local->local was filling the loopback channel
and creating an infinite loop (which became jammed since the reader and
writer were in the same goroutine).

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
2020-10-08 01:01:39 -04:00
..
faketun.go wgengine/tstun/faketun: it's a null tunnel, not a loopback. 2020-10-08 01:01:39 -04:00
tun.go wgengine/tstun: fix typo in comment 2020-09-25 12:24:44 -07:00
tun_test.go wgengine/tstun/faketun: it's a null tunnel, not a loopback. 2020-10-08 01:01:39 -04:00