]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_debug.h
BGP: Add dynamic update group support
[mirror_frr.git] / bgpd / bgp_debug.h
index b8ad7b9cfa69ed5fa4276721677b64a1dd93c836..a80d00440e95df6864b43b7837b110700c896e27 100644 (file)
@@ -22,6 +22,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 #define _QUAGGA_BGP_DEBUG_H
 
 #include "bgp_attr.h"
+#include "bgp_updgrp.h"
 
 /* sort of packet direction */
 #define DUMP_ON        1
@@ -65,6 +66,7 @@ extern unsigned long conf_bgp_debug_keepalive;
 extern unsigned long conf_bgp_debug_update;
 extern unsigned long conf_bgp_debug_zebra;
 extern unsigned long conf_bgp_debug_nht;
+extern unsigned long conf_bgp_debug_update_groups;
 
 extern unsigned long term_bgp_debug_as4;
 extern unsigned long term_bgp_debug_neighbor_events;
@@ -73,6 +75,7 @@ extern unsigned long term_bgp_debug_keepalive;
 extern unsigned long term_bgp_debug_update;
 extern unsigned long term_bgp_debug_zebra;
 extern unsigned long term_bgp_debug_nht;
+extern unsigned long term_bgp_debug_update_groups;
 
 extern struct list *bgp_debug_neighbor_events_peers;
 extern struct list *bgp_debug_keepalive_peers;
@@ -98,6 +101,7 @@ struct bgp_debug_filter
 #define BGP_DEBUG_UPDATE_PREFIX       0x04
 #define BGP_DEBUG_ZEBRA               0x01
 #define BGP_DEBUG_NHT                 0x01
+#define BGP_DEBUG_UPDATE_GROUPS       0x01
 
 #define BGP_DEBUG_PACKET_SEND         0x01
 #define BGP_DEBUG_PACKET_SEND_DETAIL  0x02
@@ -125,13 +129,15 @@ struct bgp_debug_filter
 extern const char *bgp_type_str[];
 
 extern int bgp_dump_attr (struct peer *, struct attr *, char *, size_t);
+extern int bgp_debug_peer_updout_enabled(struct peer *peer);
 extern void bgp_notify_print (struct peer *, struct bgp_notify *, const char *);
 
 extern const struct message bgp_status_msg[];
 extern const int bgp_status_msg_max;
 extern int bgp_debug_neighbor_events(struct peer *peer);
 extern int bgp_debug_keepalive(struct peer *peer);
-extern int bgp_debug_update(struct peer *peer, struct prefix *p, unsigned int inbound);
+extern int bgp_debug_update(struct peer *peer, struct prefix *p,
+                            struct update_group *updgrp, unsigned int inbound);
 extern int bgp_debug_zebra(struct prefix *p);
 
 #endif /* _QUAGGA_BGP_DEBUG_H */