]> git.proxmox.com Git - mirror_frr.git/blame - bgpd/bgp_dump.h
bgpd: Fix continue/break change from old commit
[mirror_frr.git] / bgpd / bgp_dump.h
CommitLineData
718e3744 1/* BGP dump routine.
896014f4
DL
2 * Copyright (C) 1999 Kunihiro Ishiguro
3 *
4 * This file is part of GNU Zebra.
5 *
6 * GNU Zebra is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
9 * later version.
10 *
11 * GNU Zebra is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
718e3744 20
00d252cb 21#ifndef _QUAGGA_BGP_DUMP_H
22#define _QUAGGA_BGP_DUMP_H
23
718e3744 24/* MRT compatible packet dump values. */
25/* type value */
4db5d90a
AF
26#define MSG_PROTOCOL_BGP4MP 16
27#define MSG_PROTOCOL_BGP4MP_ET 17
28
718e3744 29/* subtype value */
1073f44d
DT
30#define BGP4MP_STATE_CHANGE 0
31#define BGP4MP_MESSAGE 1
32#define BGP4MP_ENTRY 2
33#define BGP4MP_SNAPSHOT 3
34#define BGP4MP_MESSAGE_AS4 4
35#define BGP4MP_STATE_CHANGE_AS4 5
36#define BGP4MP_MESSAGE_ADDPATH 8
37#define BGP4MP_MESSAGE_AS4_ADDPATH 9
38#define BGP4MP_MESSAGE_LOCAL_ADDPATH 10
39#define BGP4MP_MESSAGE_AS4_LOCAL_ADDPATH 11
718e3744 40
41#define BGP_DUMP_HEADER_SIZE 12
9834cd0f 42#define BGP_DUMP_MSG_HEADER 40
718e3744 43
1073f44d
DT
44#define TABLE_DUMP_V2_PEER_INDEX_TABLE 1
45#define TABLE_DUMP_V2_RIB_IPV4_UNICAST 2
0b2aa3a0 46#define TABLE_DUMP_V2_RIB_IPV4_MULTICAST 3
1073f44d 47#define TABLE_DUMP_V2_RIB_IPV6_UNICAST 4
0b2aa3a0 48#define TABLE_DUMP_V2_RIB_IPV6_MULTICAST 5
1073f44d
DT
49#define TABLE_DUMP_V2_RIB_IPV4_UNICAST_ADDPATH 8
50#define TABLE_DUMP_V2_RIB_IPV4_MULTICAST_ADDPATH 9
51#define TABLE_DUMP_V2_RIB_IPV6_UNICAST_ADDPATH 10
52#define TABLE_DUMP_V2_RIB_IPV6_MULTICAST_ADDPATH 11
53#define TABLE_DUMP_V2_RIB_GENERIC_ADDPATH 12
0b2aa3a0
PJ
54
55#define TABLE_DUMP_V2_PEER_INDEX_TABLE_IP 0
56#define TABLE_DUMP_V2_PEER_INDEX_TABLE_IP6 1
57#define TABLE_DUMP_V2_PEER_INDEX_TABLE_AS2 0
58#define TABLE_DUMP_V2_PEER_INDEX_TABLE_AS4 2
59
d62a17ae 60extern void bgp_dump_init(void);
61extern void bgp_dump_finish(void);
7d8d0eab 62extern int bgp_dump_state(struct peer *);
00d252cb 63
64#endif /* _QUAGGA_BGP_DUMP_H */