/
types.h
51 lines (44 loc) · 1.02 KB
/
types.h
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
#ifndef SRC_BGP_EXTENDED_COMMUNITY_TYPES_H_
#define SRC_BGP_EXTENDED_COMMUNITY_TYPES_H_
struct BgpExtendedCommunityType {
enum type {
TwoOctetAS = 0x00,
IPv4Address = 0x01,
FourOctetAS = 0x02,
Opaque = 0x03,
Evpn = 0x06,
Experimental = 0x80,
};
};
struct BgpExtendedCommunitySubType {
enum SubType {
RouteTarget = 0x02,
RouteOrigin = 0x03,
};
};
struct BgpExtendedCommunityOpaqueSubType {
enum SubType {
TunnelEncap = 0x0C,
DefaultGateway = 0x0D,
LoadBalance = 0xAA, // TBA
};
};
struct BgpExtendedCommunityEvpnSubType {
enum SubType {
MacMobility = 0x00,
EsiMplsLabel = 0x01,
EsImport = 0x02,
RouterMac = 0x03,
ETree = 0x05,
};
};
struct BgpExtendedCommunityExperimentalSubType {
enum SubType {
OriginVn = 0x71,
SgId = 0x04,
};
};
#endif // SRC_BGP_EXTENDED_COMMUNITY_TYPES_H_