constants

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdsMode      = "ads"
	WorkloadMode = "workload"

	// DataPlaneModeLabel is the label used to indicate the data plane mode
	DataPlaneModeLabel = "istio.io/dataplane-mode"
	// DataPlaneModeKmesh is the value of the label to indicate the data plane mode is kmesh
	DataPlaneModeKmesh = "kmesh"
	// This annotation is used to indicate traffic redirection settings specific to Kmesh
	KmeshRedirectionAnnotation = "kmesh.net/redirection"

	XDP_PROG_NAME = "xdp_shutdown"

	RootCertPath = "/var/run/secrets/istio/root-cert.pem"
	TrustDomain  = "cluster.local"

	BPF_LOG_ERR   = 0
	BPF_LOG_WARN  = 1
	BPF_LOG_INFO  = 2
	BPF_LOG_DEBUG = 3

	// IP family
	MSG_TYPE_IPV4 = uint32(0)
	MSG_TYPE_IPV6 = uint32(1)

	// Ip(0.0.0.2 | ::2) used for control command, e.g. KmeshControl | ByPass
	ControlCommandIp4 = "0.0.0.2"
	ControlCommandIp6 = "::2"
	// Oper code for control command
	OperEnableControl  = 929
	OperDisableControl = 930

	// tail call index in tail call prog map
	TailCallConnect4Index = 0
	TailCallConnect6Index = 1

	INBOUND  = uint32(1)
	OUTBOUND = uint32(2)

	Cgroup2Path = "/mnt/kmesh_cgroup2"
	BpfFsPath   = "/sys/fs/bpf"

	VersionPath         = "/bpf_kmesh/map/"
	WorkloadVersionPath = "/bpf_kmesh_workload/map/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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