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
Brendan Creane e590877667
net/dns/resolver: set TC flag when UDP responses exceed size limits
The forwarder was not setting the Truncated (TC) flag when UDP DNS
responses exceeded either the EDNS buffer size (if present) or the
RFC 1035 default 512-byte limit. This affected DoH, TCP fallback,
and UDP response paths.

The fix ensures checkResponseSizeAndSetTC is called in all code paths
that return UDP responses, enforcing both EDNS and default UDP size
limits.

Added comprehensive unit tests and consolidated duplicate test helpers.

Updates #18107

Signed-off-by: Brendan Creane <bcreane@gmail.com>
2 weeks ago
..
ace feature/ace: make ACE modular 3 months ago
art all: rename variables with lowercase-l/uppercase-I 2 months ago
bakedroots tstest/tlstest: simplify, don't even bake in any keys 7 months ago
batching net/batching: fix import formatting 2 months ago
captivedetection syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
connectproxy net/tlsdial: fix TLS cert validation of HTTPS proxies 7 months ago
dns net/dns/resolver: set TC flag when UDP responses exceed size limits 2 weeks ago
dnscache syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
dnsfallback feature, net/tshttpproxy: pull out support for using proxies as a feature 3 months ago
flowtrack net/flowtrack: fix, test String method 2 years ago
ipset all: use iterators over slice views more 1 year ago
ktimeout all: rename variables with lowercase-l/uppercase-I 2 months ago
memnet all: rename variables with lowercase-l/uppercase-I 2 months ago
netaddr all: rename variables with lowercase-l/uppercase-I 2 months ago
netcheck all: rename variables with lowercase-l/uppercase-I 2 months ago
neterror net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 3 years ago
netkernelconf all: remove non-applicable "linux" deps on Android 8 months ago
netknob all: update copyright and license headers 3 years ago
netmon net/netmon, wgengine/userspace: purge ChangeDelta.Major and address TODOs (#17823) 4 weeks ago
netns net/netns: remove spammy logs for interface binding caps 2 months ago
netstat all: add test for package comments, fix, add comments as needed 2 years ago
netutil syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
netx net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 9 months ago
packet net/{packet,tstun},wgengine: update disco key when receiving via TSMP (#18158) 1 month ago
ping syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
portmapper go.mod: bump golang.org/x/crypto (#17907) 2 months ago
proxymux all: cleanup unused code, part 1 (#10661) 2 years ago
routetable net/routetable: don't try to fetch the route table on android 9 months ago
sockopts wgengine/magicsock,net/sockopts: export Windows ICMP suppression logic (#16917) 5 months ago
socks5 all: rename variables with lowercase-l/uppercase-I 2 months ago
sockstats net/netmon, wgengine/userspace: purge ChangeDelta.Major and address TODOs (#17823) 4 weeks ago
speedtest all: rename variables with lowercase-l/uppercase-I 2 months ago
stun ci: enable checklocks workflow for specific packages 2 years ago
stunserver all: use Go 1.22 range-over-int 2 years ago
tcpinfo all: use Go 1.22 range-over-int 2 years ago
tlsdial feature/featuretags, all: add build features, use existing ones in more places 3 months ago
tsaddr net/tsaddr: include test input in test failure output 1 year ago
tsdial net/netmon, wgengine/userspace: purge ChangeDelta.Major and address TODOs (#17823) 4 weeks ago
tshttpproxy go.mod: bump golang.org/x/crypto (#17907) 2 months ago
tstun net/{packet,tstun},wgengine: update disco key when receiving via TSMP (#18158) 1 month ago
udprelay net/udprelay: remove tailscaled_peer_relay_endpoints_total (#18254) 3 weeks ago
wsconn syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago