/
constants.go
24 lines (23 loc) · 1.1 KB
/
constants.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
package constants
const (
//Initialmarkval is the start of mark values we assign to cgroup
Initialmarkval = 100
// EnforcerCgroupMark is the net_cls.classid that is programmed for the cgroup that all enforcer processes belong to
EnforcerCgroupMark = 1536
//PacketMarkToSetConnmark is used to set mark on packet when repeating a packet through nfq.
PacketMarkToSetConnmark = uint32(0x42)
//DefaultInputMark is used to set mark on packet when repeating a packet through nfq.
DefaultInputMark = uint32(0x43)
// DefaultConnMark is the default conn mark for all data packets
DefaultConnMark = uint32(0xEEEE)
// DefaultExternalConnMark is the default conn mark for all data packets
DefaultExternalConnMark = uint32(0xEEEF)
// DeleteConnmark is the mark used to trigger udp handshake.
DeleteConnmark = uint32(0xABCD)
// DropConnmark is used to drop packets identified by acl's
DropConnmark = uint32(0xEEED)
// HandshakeConnmark is used to drop response packets
HandshakeConnmark = uint32(0xEEEC)
// IstioPacketMark is a mark that we use so that we don't loop in the Istio Chain forever.
IstioPacketMark = 0x44
)