netkernelconf

package
v1.74.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

Package netkernelconf contains code for checking kernel netdev config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUDPGROForwarding

func CheckUDPGROForwarding(tunInterface, defaultRouteInterface string) (warn, err error)

CheckUDPGROForwarding checks if the machine is optimally configured to forward UDP packets between the default route and Tailscale TUN interfaces. It returns a non-nil warn in the case that the configuration is suboptimal. It returns a non-nil err in the case that an error is encountered while performing the check.

func SetUDPGROForwarding added in v1.68.0

func SetUDPGROForwarding(tunInterface, defaultInterface string) error

SetUDPGROForwarding enables UDP GRO forwarding for the provided default interface. It validates if the provided tun interface has UDP segmentation enabled and, if not, returns an error. See https://tailscale.com/kb/1320/performance-best-practices#linux-optimizations-for-subnet-routers-and-exit-nodes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL