blob: 26dd0c0eff965faf0f3b54ca8699508379b75c1a [file] [log] [blame]
Serge Bazanski93d593b2023-03-28 16:43:47 +02001package node
2
Serge Bazanski93d593b2023-03-28 16:43:47 +02003// These are netlink protocol numbers used internally for various netlink
4// resource (e.g. route) owners/manager.
5const (
6 // ProtocolClusternet is used by //metropolis/node/core/clusternet when
7 // creating/removing routes pointing to the clusternet interface.
Timon Stampfli91bcf462024-12-15 16:57:05 +01008 ProtocolClusternet int = 129
Serge Bazanski93d593b2023-03-28 16:43:47 +02009)
Lorenz Brun0dca6c92025-01-28 15:04:13 +010010
11// Netlink link groups used for interface classification and traffic matching.
12const (
13 // LinkGroupK8sPod is set on all host side PtP interfaces going to K8s
14 // pods.
15 LinkGroupK8sPod uint32 = 8
16 // LinkGroupClusternet is set on all interfaces not needing SNAT from the
17 // K8s internal IPs.
18 LinkGroupClusternet uint32 = 9
19)