Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/cmd/dsslib/bgp/mrt.h
1810 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 2002-2011 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* Glenn Fowler <[email protected]> *
18
* *
19
***********************************************************************/
20
/*
21
* mrt format constants
22
*
23
* Glenn Fowler
24
* AT&T Research
25
*/
26
27
#ifndef _MRT_H
28
#define _MRT_H 1
29
30
#define MRT_HEAD 12
31
32
#define GROUP_MESSAGE 1
33
34
#define MRT_I_AM_DEAD 3
35
#define MRT_BGP 5 /* DEPRECATED */
36
#define MRT_RIP 6 /* NOT IMPLEMENTED */
37
#define MRT_IDRP 7 /* DEPRECATED */
38
#define MRT_RIPNG 8 /* NOT IMPLEMENTED */
39
#define MRT_BGP4PLUS 9 /* DEPRECATED */
40
#define MRT_BGP4PLUS_01 10 /* DEPRECATED */
41
#define MRT_OSPFv2 11
42
#define MRT_TABLE_DUMP 12
43
#define MRT_TABLE_DUMP_V2 13
44
#define MRT_BGP4MP 16
45
#define MRT_BGP4MP_ET 17
46
#define MRT_ISIS 32
47
#define MRT_ISIS_ET 33
48
#define MRT_OSPFv3 48
49
#define MRT_OSPFv3_ET 49
50
51
#define GROUP_BGP MRT_BGP
52
53
#define MRT_BGP_NULL 0
54
#define MRT_BGP_UPDATE 1
55
#define MRT_BGP_PREF_UPDATE 2
56
#define MRT_BGP_STATE_CHANGE 3
57
#define MRT_BGP_SYNC 4
58
#define MRT_BGP_OPEN 5
59
#define MRT_BGP_NOTIFY 6
60
#define MRT_BGP_KEEPALIVE 7
61
62
#define GROUP_TABLE MRT_TABLE_DUMP
63
64
#define MRT_TABLE_IPV4_UNICAST 1
65
#define MRT_TABLE_IPV6_UNICAST 2
66
67
#define GROUP_TABLE_V2 MRT_TABLE_DUMP_V2
68
69
#define MRT_TABLE_PEER_INDEX_TABLE 1
70
#define MRT_TABLE_RIB_IPV4_UNICAST 2
71
#define MRT_TABLE_RIB_IPV4_MULTICAST 3
72
#define MRT_TABLE_RIB_IPV6_UNICAST 4
73
#define MRT_TABLE_RIB_IPV6_MULTICAST 5
74
#define MRT_TABLE_RIB_GENERIC 6
75
76
#define GROUP_BGP4MP MRT_BGP4MP
77
#define GROUP_BGP4MP_ET MRT_BGP4MP_ET
78
79
#define MRT_BGP4MP_KEEPALIVE (-1) /* for MRT_BGP_KEEPALIVE */
80
#define MRT_BGP4MP_STATE_CHANGE 0
81
#define MRT_BGP4MP_MESSAGE 1
82
#define MRT_BGP4MP_UPDATE 2 /* for MRT_BGP_UPDATE */
83
#define MRT_BGP4MP_NOTIFY 3 /* for MRT_BGP_NOTIFY */
84
#define MRT_BGP4MP_MESSAGE_AS4 4
85
#define MRT_BGP4MP_STATE_CHANGE_AS4 5
86
#define MRT_BGP4MP_MESSAGE_LOCAL 6
87
#define MRT_BGP4MP_MESSAGE_AS4_LOCAL 7
88
#define MRT_BGP4MP_EXTENSION_20 20
89
90
#define GROUP_ATTR (-1)
91
92
#define MRT_ATTR_ORIGIN 1
93
#define MRT_ATTR_AS_PATH 2
94
#define MRT_ATTR_HOP 3
95
#define MRT_ATTR_MED 4
96
#define MRT_ATTR_LOCAL 5
97
#define MRT_ATTR_ATOMIC 6
98
#define MRT_ATTR_AGGREGATOR 7
99
#define MRT_ATTR_COMMUNITY 8
100
#define MRT_ATTR_ORIGINATOR 9
101
#define MRT_ATTR_CLUSTER 10
102
#define MRT_ATTR_DPA 11
103
#define MRT_ATTR_ADVERTIZER 12
104
#define MRT_ATTR_RCID_PATH 13
105
#define MRT_ATTR_MP_REACH_NLRI 14
106
#define MRT_ATTR_MP_UNREACH_NLRI 15
107
#define MRT_ATTR_EXTENDED_COMMUNITY 16
108
#define MRT_ATTR_AS32_PATH 17
109
#define MRT_ATTR_AGGREGATOR32 18
110
#define MRT_ATTR_CONNECTOR 20
111
#define MRT_ATTR_PMSI_TUNNEL 22
112
#define MRT_ATTR_SET 128
113
114
#define GROUP_AFI (-2)
115
116
#define MRT_AFI_IPV4 1
117
#define MRT_AFI_IPV6 2
118
119
#define MRT_BITS_IPV4 32
120
#define MRT_BITS_IPV6 128
121
122
#define GROUP_SAFI (-3)
123
124
#define MRT_SAFI_NLRI_UCAST_FORWARD 1
125
#define MRT_SAFI_NLRI_MCAST_FORWARD 2
126
#define MRT_SAFI_NLRI_MLPS_LABEL 4
127
#define MRT_SAFI_MCAST_VPN 5
128
#define MRT_SAFI_VPN_MLPS_LABEL 128
129
130
#define GROUP_MCAST_VPN (-4)
131
132
#define VPN_INTRA_AS_I_PMSI_A_D 1
133
#define VPN_INTER_AS_I_PMSI_A_D 2
134
#define VPN_S_PMSI_A_D 3
135
#define VPN_LEAF_A_D 4
136
#define VPN_SOURCE_ACTIVE_A_D 5
137
#define VPN_SHARED_TREE_JOIN 6
138
#define VPN_SOURCE_TREE_JOIN 7
139
140
#define GROUP_BGP_MESSAGE (-5)
141
142
#define MRT_BGP_MESSAGE_STATE_CHANGE 0
143
#define MRT_BGP_MESSAGE_OPEN 1
144
#define MRT_BGP_MESSAGE_UPDATE 2
145
#define MRT_BGP_MESSAGE_NOTIFY 3
146
#define MRT_BGP_MESSAGE_KEEPALIVE 4
147
148
#endif
149
150