tailscale/net
Adrian Dewhurst bcaae3e074 net/dns/resolver: clamp EDNS size
This change (subject to some limitations) looks for the EDNS OPT record
in queries and responses, clamping the size field to fit within our DNS
receive buffer. If the size field is smaller than the DNS receive buffer
then it is left unchanged.

I think we will eventually need to transition to fully processing the
DNS queries to handle all situations, but this should cover the most
common case.

Mostly fixes #2066

Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
2021-06-25 08:56:34 -04:00
..
dns net/dns/resolver: clamp EDNS size 2021-06-25 08:56:34 -04:00
dnscache control/controlclient, net/{dnscache,dnsfallback}: add DNS fallback mechanism 2021-03-01 18:42:03 -08:00
dnsfallback net/dnsfallback: fix infinite loop and limit number of candidates 2021-03-04 19:19:40 -08:00
flowtrack net/packet, wgengine/filter: support SCTP 2021-03-20 21:34:13 -07:00
interfaces net/interfaces: use IPv4 link local if nothing better 2021-06-18 21:52:47 -07:00
netcheck net/{interfaces,netcheck}: rename some fields, funcs 2021-06-17 17:50:13 -07:00
netns net/netns: add Android implementation, allowing registration of JNI hook 2021-06-24 12:50:47 -07:00
netstat all: adapt to opaque netaddr types 2021-05-16 14:52:00 -07:00
nettest net/nettest: make nettest.NewConn pass x/net/nettest.TestConn. 2021-04-06 15:34:29 -07:00
packet net/packet: use netaddr AppendTo methods 2021-05-20 20:42:18 -07:00
portmapper staticcheck.conf: turn off noisy lint errors 2021-06-18 15:48:20 -07:00
socks5 net/socks5: fix a typo 2021-06-23 22:12:17 -07:00
stun tstest/integration: add testNode.AwaitListening, DERP+STUN, improve proxy trap 2021-05-03 12:14:20 -07:00
tlsdial net/tlsdial, derp/derphttp: finish DERPNode.CertName validation 2020-06-01 09:01:37 -07:00
tsaddr net/tsaddr: simplify TailscaleServiceIP 2021-05-28 20:36:26 -07:00
tshttpproxy net/tshttpproxy: call winhttp calls from a fixed OS thread 2021-03-03 19:16:04 -08:00
tstun net/tstun: add a debug envvar to override tun MTU. 2021-06-04 11:55:11 -07:00