Copy UDP GSO support from tailscale

This commit is contained in:
世界 2024-11-22 16:36:35 +08:00
parent 06b4d4ecd1
commit 2b8115e83b
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
11 changed files with 1313 additions and 820 deletions

View file

@ -3,13 +3,13 @@ package tun
import (
"errors"
"fmt"
"github.com/sagernet/sing-tun/internal/gtcpip/header"
"net"
"net/netip"
"os"
"syscall"
"unsafe"
"github.com/sagernet/sing-tun/internal/gtcpip/header"
"github.com/sagernet/sing/common"
"github.com/sagernet/sing/common/buf"
"github.com/sagernet/sing/common/bufio"