prober: perform DERP bandwidth probes over TUN device to mimic real client

Updates tailscale/corp#24635

Co-authored-by: Mario Minardi <mario@tailscale.com>
Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
Percy Wegmann
2024-12-10 11:52:51 -06:00
committed by Percy Wegmann
parent aa04f61d5e
commit 1ed9bd76d6
5 changed files with 411 additions and 28 deletions

18
prober/tun_default.go Normal file
View File

@@ -0,0 +1,18 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !linux && !darwin
package prober
import (
"fmt"
"net/netip"
"runtime"
)
const tunName = "unused"
func configureTUN(addr netip.Prefix, tunname string) error {
return fmt.Errorf("not implemented on " + runtime.GOOS)
}