blob: c4c3f64a5a288bc88f6e21d0a0708fbccec0afb0 [file] [log] [blame]
Tim Windelschmidt6d33a432025-02-04 14:34:25 +01001// Copyright The Monogon Project Authors.
2// SPDX-License-Identifier: Apache-2.0
3
Serge Bazanski93d593b2023-03-28 16:43:47 +02004package node
5
Serge Bazanski93d593b2023-03-28 16:43:47 +02006// These are netlink protocol numbers used internally for various netlink
7// resource (e.g. route) owners/manager.
8const (
Lorenz Bruncb76c842025-08-11 12:54:28 +02009 // ProtocolOverlay is used by //metropolis/node/core/network/overlay
10 // when creating/removing routes pointing to the overlay interface.
11 ProtocolOverlay int = 129
Serge Bazanski93d593b2023-03-28 16:43:47 +020012)
Lorenz Brun0dca6c92025-01-28 15:04:13 +010013
14// Netlink link groups used for interface classification and traffic matching.
15const (
16 // LinkGroupK8sPod is set on all host side PtP interfaces going to K8s
17 // pods.
18 LinkGroupK8sPod uint32 = 8
Lorenz Bruncb76c842025-08-11 12:54:28 +020019 // LinkGroupOverlay is set on all interfaces which are part of the overlay
20 // network and thus exempt from SNATing of workload traffic.
21 LinkGroupOverlay uint32 = 9
Lorenz Brun0dca6c92025-01-28 15:04:13 +010022)