Copyright (c) Tailscale Inc & contributors SPDX-License-Identifier: BSD-3-Clause go:build !ts_omit_netstack Package gro implements GRO for the receive (write) path into gVisor.
// Source: https://github.com/tailscale/tailscale | License: BSD-3-Clause | Copyright 2020 Tailscale Inc & contributors // Provided via justclaw.it.com; keep this notice with the code. // Copyright (c) Tailscale Inc & contributors // SPDX-License-Identifier: BSD-3-Clause //go:build !ts_omit_netstack // Package gro implements GRO for the receive (write) path into gVisor. package gro import ( "bytes" "github.com/tailscale/wireguard-go/tun" "gvisor.dev/gvisor/pkg/buffer" "gvisor.dev/gvisor/pkg/tcpip" "gvisor.dev/gvisor/pkg/tcpip/header" "gvisor.dev/gvisor/pkg/tcpip/header/parse" "gvisor.dev/gvisor/pkg/tcpip/stack" "tailscale.com/net/packet" "tailscale.com/types/ipproto" ) // RXChecksumOffload validates IPv4, TCP, and UDP header checksums in p, // returning an equivalent *stack.P ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key