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

Method injectInbound

wgengine/netstack/link_endpoint.go:187–200  ·  view source on GitHub ↗
(p *packet.Parsed)

Source from the content-addressed store, hash-verified

185}
186
187func (ep *linkEndpoint) injectInbound(p *packet.Parsed) {
188 ep.mu.RLock()
189 d := ep.dispatcher
190 ep.mu.RUnlock()
191 if d == nil || !buildfeatures.HasNetstack {
192 return
193 }
194 pkt := gro.RXChecksumOffload(p)
195 if pkt == nil {
196 return
197 }
198 d.DeliverNetworkPacket(pkt.NetworkProtocolNumber, pkt)
199 pkt.DecRef()
200}
201
202// DeliverLoopback delivers pkt back into gVisor's network stack as if it
203// arrived from the network, for self-addressed (loopback) packets. It takes

Callers 1

groMethod · 0.95

Calls 3

RXChecksumOffloadFunction · 0.92
DeliverNetworkPacketMethod · 0.80
DecRefMethod · 0.80

Tested by

no test coverage detected