-
Notifications
You must be signed in to change notification settings - Fork 155
/
pbr.go
31 lines (26 loc) · 1.29 KB
/
pbr.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2017-2019 Zededa, Inc.
// SPDX-License-Identifier: Apache-2.0
package devicenetwork
const (
// DPCBaseRTIndex : base index for per-port routing tables used for device
// connectivity (between EVE and remote endpoints, such as the controller),
// i.e. used for DevicePortConfig (abbreviated to DPC).
// Routing table ID is a sum of the base with the interface index of the corresponding
// physical interface.
DPCBaseRTIndex = 500
// NIBaseRTIndex : base index for per-NI (network instance) routing tables used
// for uplink connectivity (between applications and remote endpoints).
// Routing table ID is a sum of the base with the "bridge number" allocated
// (and persisted) for every network instance.
NIBaseRTIndex = 800
// PbrLocalDestPrio : IP rule priority for packets destined to locally owned addresses
PbrLocalDestPrio = 12000
// PbrLocalOrigPrio : IP rule priority for locally generated packets
PbrLocalOrigPrio = 15000
// PbrNatOutGatewayPrio : IP rule priority for packets destined to gateway(bridge ip) coming from apps.
PbrNatOutGatewayPrio = 9999
// PbrNatOutPrio : IP rule priority for packets destined to internet coming from apps
PbrNatOutPrio = 10000
// PbrNatInPrio : IP rule priority for external packets coming in towards apps
PbrNatInPrio = 11000
)