mirror of
https://github.com/tailscale/tailscale.git
synced 2026-03-28 19:21:13 -04:00
By polling RTM_GETSTATS via netlink. RTM_GETSTATS is a relatively efficient and targeted (single device) polling method available since Linux v4.7. The tundevstats "feature" can be extended to other platforms in the future, and it's trivial to add new rtnl_link_stats64 counters on Linux. Updates tailscale/corp#38181 Signed-off-by: Jordan Whited <jordan@tailscale.com>
14 lines
499 B
Go
14 lines
499 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Code generated by gen.go; DO NOT EDIT.
|
|
|
|
//go:build !ts_omit_tundevstats
|
|
|
|
package buildfeatures
|
|
|
|
// HasTUNDevStats is whether the binary was built with support for modular feature "Poll TUN device statistics (Linux only)".
|
|
// Specifically, it's whether the binary was NOT built with the "ts_omit_tundevstats" build tag.
|
|
// It's a const so it can be used for dead code elimination.
|
|
const HasTUNDevStats = true
|