diff options
Diffstat (limited to 'bgpd/bgp_debug.h')
-rw-r--r-- | bgpd/bgp_debug.h | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/bgpd/bgp_debug.h b/bgpd/bgp_debug.h index ce8547b0..b8ad7b9c 100644 --- a/bgpd/bgp_debug.h +++ b/bgpd/bgp_debug.h @@ -59,44 +59,49 @@ extern void bgp_packet_dump (struct stream *); extern int debug (unsigned int option); extern unsigned long conf_bgp_debug_as4; -extern unsigned long conf_bgp_debug_fsm; -extern unsigned long conf_bgp_debug_events; +extern unsigned long conf_bgp_debug_neighbor_events; extern unsigned long conf_bgp_debug_packet; -extern unsigned long conf_bgp_debug_filter; extern unsigned long conf_bgp_debug_keepalive; extern unsigned long conf_bgp_debug_update; -extern unsigned long conf_bgp_debug_normal; extern unsigned long conf_bgp_debug_zebra; +extern unsigned long conf_bgp_debug_nht; extern unsigned long term_bgp_debug_as4; -extern unsigned long term_bgp_debug_fsm; -extern unsigned long term_bgp_debug_events; +extern unsigned long term_bgp_debug_neighbor_events; extern unsigned long term_bgp_debug_packet; -extern unsigned long term_bgp_debug_filter; extern unsigned long term_bgp_debug_keepalive; extern unsigned long term_bgp_debug_update; -extern unsigned long term_bgp_debug_normal; extern unsigned long term_bgp_debug_zebra; +extern unsigned long term_bgp_debug_nht; + +extern struct list *bgp_debug_neighbor_events_peers; +extern struct list *bgp_debug_keepalive_peers; +extern struct list *bgp_debug_update_in_peers; +extern struct list *bgp_debug_update_out_peers; +extern struct list *bgp_debug_update_prefixes; +extern struct list *bgp_debug_zebra_prefixes; + +struct bgp_debug_filter +{ + struct peer *peer; + struct prefix *p; +}; #define BGP_DEBUG_AS4 0x01 #define BGP_DEBUG_AS4_SEGMENT 0x02 -#define BGP_DEBUG_FSM 0x01 -#define BGP_DEBUG_EVENTS 0x01 +#define BGP_DEBUG_NEIGHBOR_EVENTS 0x01 #define BGP_DEBUG_PACKET 0x01 -#define BGP_DEBUG_FILTER 0x01 #define BGP_DEBUG_KEEPALIVE 0x01 #define BGP_DEBUG_UPDATE_IN 0x01 #define BGP_DEBUG_UPDATE_OUT 0x02 -#define BGP_DEBUG_NORMAL 0x01 +#define BGP_DEBUG_UPDATE_PREFIX 0x04 #define BGP_DEBUG_ZEBRA 0x01 +#define BGP_DEBUG_NHT 0x01 #define BGP_DEBUG_PACKET_SEND 0x01 #define BGP_DEBUG_PACKET_SEND_DETAIL 0x02 -#define BGP_DEBUG_PACKET_RECV 0x01 -#define BGP_DEBUG_PACKET_RECV_DETAIL 0x02 - #define CONF_DEBUG_ON(a, b) (conf_bgp_debug_ ## a |= (BGP_DEBUG_ ## b)) #define CONF_DEBUG_OFF(a, b) (conf_bgp_debug_ ## a &= ~(BGP_DEBUG_ ## b)) @@ -124,5 +129,9 @@ 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_zebra(struct prefix *p); #endif /* _QUAGGA_BGP_DEBUG_H */ |