blob: f3e69b8a47bda18b04eca85de1c26c5b26456a73 [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 (
9 // ProtocolClusternet is used by //metropolis/node/core/clusternet when
10 // creating/removing routes pointing to the clusternet interface.
Timon Stampfli91bcf462024-12-15 16:57:05 +010011 ProtocolClusternet 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
19 // LinkGroupClusternet is set on all interfaces not needing SNAT from the
20 // K8s internal IPs.
21 LinkGroupClusternet uint32 = 9
22)