package
1.79.0-mod
Repository: https://github.com/sagernet/tailscale.git
Documentation: pkg.go.dev

# Functions

AllIPv4 returns 0.0.0.0/0.
AllIPv6 returns ::/0.
CGNATRange returns the Carrier Grade NAT address range that is the superset range that Tailscale assigns out of.
ChromeOSVMRange returns the subset of the CGNAT IPv4 range used by ChromeOS to interconnect the host OS to containers and VMs.
ContainsExitRoute reports whether rr contains at least one of IPv4 or IPv6 /0 (exit) routes.
ContainsExitRoutes reports whether rr contains both the IPv4 and IPv6 /0 route.
ContainsNonExitSubnetRoutes reports whether v contains Subnet Routes other than ExitNode Routes.
ExitRoutes returns a slice containing AllIPv4 and AllIPv6.
FilterPrefixes returns a new slice, not aliasing in, containing elements of in that match f.
IsExitRoute reports whether p is an exit node route.
IsTailscaleIP reports whether IP is an IP address in a range that Tailscale assigns from.
IsTailscaleIPv4 reports whether an IPv4 IP is an IP address that Tailscale assigns from.
IsViaPrefix reports whether p is a CIDR in the Tailscale "via" range.
MapVia returns an IPv6 "via" route for an IPv4 CIDR in a given siteID.
PrefixesContainsIP reports whether any prefix in ipp contains ip.
PrefixIs4 reports whether p is an IPv4 prefix.
PrefixIs6 reports whether p is an IPv6 prefix.
SortPrefixes sorts the prefixes in place.
Tailscale4To6 returns a Tailscale IPv6 address that maps 1:1 to the given Tailscale IPv4 address.
Tailscale4To6Placeholder returns an IP address that can be used as a source IP when one is required, but a netmap didn't provide any.
Tailscale4To6Range returns the subset of TailscaleULARange used for auto-translated Tailscale ipv4 addresses.
Tailscale6to4 returns the IPv4 address corresponding to the given tailscale IPv6 address within the 4To6 range.
TailscaleEphemeral6Range returns the subset of TailscaleULARange used for ephemeral IPv6-only Tailscale nodes.
TailscaleServiceIP returns the IPv4 listen address of services provided by Tailscale itself such as the MagicDNS proxy.
TailscaleServiceIPv6 returns the IPv6 listen address of the services provided by Tailscale itself such as the MagicDNS proxy.
TailscaleULARange returns the IPv6 Unique Local Address range that is the superset range that Tailscale assigns out of.
TailscaleViaRange returns the IPv6 Unique Local Address subset range TailscaleULARange that's used for IPv4 tunneling via IPv6.
UnmapVia returns the IPv4 address that corresponds to the provided Tailscale "via" IPv4-in-IPv6 address.
WithoutExitRoute returns rr unchanged if it has 0 /0 routes.
WithoutExitRoutes returns rr unchanged if it has only 1 or 0 /0 routes.

# Constants

No description provided by the author
No description provided by the author