MCPcopy Index your code
hub / github.com/tailscale/tailscale / acceptUDPNoICMP

Method acceptUDPNoICMP

wgengine/netstack/netstack.go:1904–1907  ·  view source on GitHub ↗

acceptUDPNoICMP wraps acceptUDP to satisfy udp.ForwarderHandler. A gvisor bump from 9414b50a to 573d5e71 on 2026-02-27 changed udp.ForwarderHandler from func(*ForwarderRequest) to func(*ForwarderRequest) bool, where returning false means unhandled and causes gvisor to send an ICMP port unreachable.

(r *udp.ForwarderRequest)

Source from the content-addressed store, hash-verified

1902// handled. Always returning true preserves the old behavior of silently
1903// dropping packets we don't service rather than sending ICMP errors.
1904func (ns *Impl) acceptUDPNoICMP(r *udp.ForwarderRequest) bool {
1905 ns.acceptUDP(r)
1906 return true
1907}
1908
1909func (ns *Impl) acceptUDP(r *udp.ForwarderRequest) {
1910 sess := r.ID()

Callers

nothing calls this directly

Calls 1

acceptUDPMethod · 0.95

Tested by

no test coverage detected