tailscale/net/udprelay/xdp/xdp_notlinux.go
Jordan Whited c3f9d1c22e net/udprelay: XDP PoC
do not merge

Updates tailscale/corp#34849

Signed-off-by: Jordan Whited <jordan@tailscale.com>
2025-12-08 15:04:53 -08:00

19 lines
504 B
Go

// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !linux
package xdp
import "net/netip"
type noopFIB struct{}
func (noopFIB) Delete(vni uint32) error { return nil }
func (noopFIB) Upsert(vni uint32, participants [2]netip.AddrPort) error { return nil }
func (noopFIB) Close(vni uint32, participants [2]netip.AddrPort) error { return nil }
func NewFIB(config FIBConfig, opts ...FIBOption) (FIB, error) {
return noopFIB{}
}