⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bgp_debug.h

📁 大名鼎鼎的路由器源码。程序分ZEBRA、OSPFRIP等3个包。程序框架采用一个路由协议一个进程的方式
💻 H
字号:
/* BGP message debug header.   Copyright (C) 1996, 97, 98 Kunihiro IshiguroThis file is part of GNU Zebra.GNU Zebra is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License as published by theFree Software Foundation; either version 2, or (at your option) anylater version.GNU Zebra is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Zebra; see the file COPYING.  If not, write to the FreeSoftware Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA02111-1307, USA.  *//* sort of packet direction */#define DUMP_ON        1#define DUMP_SEND      2#define DUMP_RECV      4/* for dump_update */#define DUMP_WITHDRAW  8#define DUMP_NLRI     16/* dump detail */#define DUMP_DETAIL   32extern int dump_open;extern int dump_update;extern int dump_keepalive;extern int dump_notify;extern int Debug_Event;extern int Debug_Keepalive;extern int Debug_Update;extern int Debug_Radix;#define	NLRI	 1#define	WITHDRAW 2#define	NO_OPT	 3#define	SEND	 4#define	RECV	 5#define	DETAIL	 6/* Prototypes. */void bgp_debug_init ();void bgp_packet_dump (struct stream *);int debug (unsigned int option);extern unsigned long conf_bgp_debug_fsm;extern unsigned long conf_bgp_debug_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 term_bgp_debug_fsm;extern unsigned long term_bgp_debug_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;#define BGP_DEBUG_FSM                 0x01#define BGP_DEBUG_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_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))#define TERM_DEBUG_ON(a, b)	(term_bgp_debug_ ## a |= (BGP_DEBUG_ ## b))#define TERM_DEBUG_OFF(a, b)	(term_bgp_debug_ ## a &= ~(BGP_DEBUG_ ## b))#define DEBUG_ON(a, b) \    do { \	CONF_DEBUG_ON(a, b); \	TERM_DEBUG_ON(a, b); \    } while (0)#define DEBUG_OFF(a, b) \    do { \	CONF_DEBUG_OFF(a, b); \	TERM_DEBUG_OFF(a, b); \    } while (0)#define BGP_DEBUG(a, b)		(term_bgp_debug_ ## a & BGP_DEBUG_ ## b)#define CONF_BGP_DEBUG(a, b)    (conf_bgp_debug_ ## a & BGP_DEBUG_ ## b)extern char *bgp_type_str[];void bgp_dump_attr (struct peer *, struct attr *, char *, size_t);void bgp_notify_print (struct peer *, struct bgp_notify *, char *);extern struct message bgp_status_msg[];extern int bgp_status_msg_max;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -