summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_dump.h
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_dump.h')
-rw-r--r--bgpd/bgp_dump.h43
1 files changed, 15 insertions, 28 deletions
diff --git a/bgpd/bgp_dump.h b/bgpd/bgp_dump.h
index e097c784..46eb9e59 100644
--- a/bgpd/bgp_dump.h
+++ b/bgpd/bgp_dump.h
@@ -1,4 +1,4 @@
-/* BGP dump routine.
+/* BGP bd routine.
Copyright (C) 1999 Kunihiro Ishiguro
This file is part of GNU Zebra.
@@ -21,35 +21,22 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#ifndef _QUAGGA_BGP_DUMP_H
#define _QUAGGA_BGP_DUMP_H
-/* MRT compatible packet dump values. */
-/* type value */
-#define MSG_PROTOCOL_BGP4MP 16
-/* subtype value */
-#define BGP4MP_STATE_CHANGE 0
-#define BGP4MP_MESSAGE 1
-#define BGP4MP_ENTRY 2
-#define BGP4MP_SNAPSHOT 3
-#define BGP4MP_MESSAGE_AS4 4
-#define BGP4MP_STATE_CHANGE_AS4 5
-
-#define BGP_DUMP_HEADER_SIZE 12
-#define BGP_DUMP_MSG_HEADER 40
-
-#define TABLE_DUMP_V2_PEER_INDEX_TABLE 1
-#define TABLE_DUMP_V2_RIB_IPV4_UNICAST 2
-#define TABLE_DUMP_V2_RIB_IPV4_MULTICAST 3
-#define TABLE_DUMP_V2_RIB_IPV6_UNICAST 4
-#define TABLE_DUMP_V2_RIB_IPV6_MULTICAST 5
-#define TABLE_DUMP_V2_RIB_GENERIC 6
-
-#define TABLE_DUMP_V2_PEER_INDEX_TABLE_IP 0
-#define TABLE_DUMP_V2_PEER_INDEX_TABLE_IP6 1
-#define TABLE_DUMP_V2_PEER_INDEX_TABLE_AS2 0
-#define TABLE_DUMP_V2_PEER_INDEX_TABLE_AS4 2
+#include "bgp_connection.h"
+#include <stdbool.h>
+/*------------------------------------------------------------------------------
+ */
extern void bgp_dump_init (void);
extern void bgp_dump_finish (void);
-extern void bgp_dump_state (struct peer *, int, int);
-extern void bgp_dump_packet (struct peer *, int, struct stream *);
+
+extern void bgp_dump_state (bgp_connection connection,
+ bgp_fsm_state_t new_state) ;
+extern void bgp_dump_packet (bgp_connection connection) ;
+
+/*------------------------------------------------------------------------------
+ * These flags are set iff the respective dump function should be called.
+ */
+extern bool bgp_dump_state_flag ;
+extern bool bgp_dump_packet_flag ;
#endif /* _QUAGGA_BGP_DUMP_H */