You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net
Tom 24bdcbe5c7
net/dns, net/dns/resolver, wgengine: refactor DNS request path (#4364)
* net/dns, net/dns/resolver, wgengine: refactor DNS request path

Previously, method calls into the DNS manager/resolver types handled DNS
requests rather than DNS packets. This is fine for UDP as one packet
corresponds to one request or response, however will not suit an
implementation that supports DNS over TCP.

To support PRs implementing this in the future, wgengine delegates
all handling/construction of packets to the magic DNS endpoint, to
the DNS types themselves. Handling IP packets at this level enables
future support for both UDP and TCP.

Signed-off-by: Tom DNetto <tom@tailscale.com>
2 years ago
..
dns net/dns, net/dns/resolver, wgengine: refactor DNS request path (#4364) 2 years ago
dnscache net/dnscache: do not call LookupIPFallback if the context was canceled. 2 years ago
dnsfallback net/dnsfallback: do not attempt lookups of IPs. 2 years ago
flowtrack all: use any instead of interface{} 2 years ago
interfaces net/interfaces: add FreeBSD default route lookup (portmapping, etc) 2 years ago
netcheck all: use any instead of interface{} 2 years ago
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 3 years ago
netknob all: disable TCP keep-alives on iOS/Android 3 years ago
netns net/netns: remove a useless probe of the "ip" command 2 years ago
netstat all: gofmt with Go 1.17 3 years ago
nettest net/nettest: deflake TestPipeTimeout 3 years ago
netutil net/netutil: add CheckIPForwardingLinux (#4301) 2 years ago
packet net/packet, wgengine/netstack: remove workaround for old gvisor ECN bug 2 years ago
portmapper all: use any instead of interface{} 2 years ago
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 3 years ago
socks5 all: use any instead of interface{} 2 years ago
speedtest all: fix spelling mistakes 3 years ago
stun all: gofmt with Go 1.17 3 years ago
tlsdial envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 2 years ago
tsaddr net/netutil: add CheckIPForwardingLinux (#4301) 2 years ago
tsdial cmd/tailscale: write fewer known_hosts, resolve ssh host to FQDN early 2 years ago
tshttpproxy net/tshttpproxy: ensure we pass the correct flags to WinHttpOpen on Win7 and Win8.0 2 years ago
tstun wgengine: inject packetbuffers rather than bytes (#4220) 2 years ago