Annotation of embedaddon/pimdd/debug.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (c) 1998 by the University of Southern California.
! 3: * All rights reserved.
! 4: *
! 5: * Permission to use, copy, modify, and distribute this software and
! 6: * its documentation in source and binary forms for lawful
! 7: * purposes and without fee is hereby granted, provided
! 8: * that the above copyright notice appear in all copies and that both
! 9: * the copyright notice and this permission notice appear in supporting
! 10: * documentation, and that any documentation, advertising materials,
! 11: * and other materials related to such distribution and use acknowledge
! 12: * that the software was developed by the University of Southern
! 13: * California and/or Information Sciences Institute.
! 14: * The name of the University of Southern California may not
! 15: * be used to endorse or promote products derived from this software
! 16: * without specific prior written permission.
! 17: *
! 18: * THE UNIVERSITY OF SOUTHERN CALIFORNIA DOES NOT MAKE ANY REPRESENTATIONS
! 19: * ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. THIS SOFTWARE IS
! 20: * PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES,
! 21: * INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
! 22: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND
! 23: * NON-INFRINGEMENT.
! 24: *
! 25: * IN NO EVENT SHALL USC, OR ANY OTHER CONTRIBUTOR BE LIABLE FOR ANY
! 26: * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, WHETHER IN CONTRACT,
! 27: * TORT, OR OTHER FORM OF ACTION, ARISING OUT OF OR IN CONNECTION WITH,
! 28: * THE USE OR PERFORMANCE OF THIS SOFTWARE.
! 29: *
! 30: * Other copyrights might apply to parts of this software and are so
! 31: * noted when applicable.
! 32: */
! 33: /*
! 34: * Questions concerning this software should be directed to
! 35: * Pavlin Ivanov Radoslavov (pavlin@catarina.usc.edu)
! 36: *
! 37: * $Id: debug.h,v 1.4 1998/05/29 21:58:22 kurtw Exp $
! 38: */
! 39: /*
! 40: * Part of this program has been derived from mrouted.
! 41: * The mrouted program is covered by the license in the accompanying file
! 42: * named "LICENSE.mrouted".
! 43: *
! 44: * The mrouted program is COPYRIGHT 1989 by The Board of Trustees of
! 45: * Leland Stanford Junior University.
! 46: *
! 47: */
! 48:
! 49: extern unsigned long debug;
! 50: extern int log_nmsgs;
! 51: #define IF_DEBUG(l) if (debug && debug & (l))
! 52:
! 53: #define LOG_MAX_MSGS 20 /* if > 20/minute then shut up for a while */
! 54: #define LOG_SHUT_UP 600 /* shut up for 10 minutes */
! 55:
! 56:
! 57: /* Debug values definition */
! 58: /* DVMRP reserved for future use */
! 59: #define DEBUG_DVMRP_PRUNE 0x00000001
! 60: #define DEBUG_DVMRP_ROUTE 0x00000002
! 61: #define DEBUG_DVMRP_PEER 0x00000004
! 62: #define DEBUG_DVMRP_TIMER 0x00000008
! 63: #define DEBUG_DVMRP_DETAIL 0x01000000
! 64: #define DEBUG_DVMRP ( DEBUG_DVMRP_PRUNE | DEBUG_DVMRP_ROUTE | \
! 65: DEBUG_DVMRP_PEER )
! 66:
! 67: /* IGMP related */
! 68: #define DEBUG_IGMP_PROTO 0x00000010
! 69: #define DEBUG_IGMP_TIMER 0x00000020
! 70: #define DEBUG_IGMP_MEMBER 0x00000040
! 71: #define DEBUG_MEMBER DEBUG_IGMP_MEMBER
! 72: #define DEBUG_IGMP ( DEBUG_IGMP_PROTO | DEBUG_IGMP_TIMER | \
! 73: DEBUG_IGMP_MEMBER )
! 74:
! 75: /* Misc */
! 76: #define DEBUG_TRACE 0x00000080
! 77: #define DEBUG_TIMEOUT 0x00000100
! 78: #define DEBUG_PKT 0x00000200
! 79:
! 80:
! 81: /* Kernel related */
! 82: #define DEBUG_IF 0x00000400
! 83: #define DEBUG_KERN 0x00000800
! 84: #define DEBUG_MFC 0x00001000
! 85: #define DEBUG_RSRR 0x00002000
! 86:
! 87: /* PIM related */
! 88: #define DEBUG_PIM_GRAFT 0x02000000
! 89: #define DEBUG_PIM_HELLO 0x00004000
! 90: #define DEBUG_PIM_REGISTER 0x00008000
! 91: #define DEBUG_PIM_JOIN_PRUNE 0x00010000
! 92: #define DEBUG_PIM_BOOTSTRAP 0x00020000
! 93: #define DEBUG_PIM_ASSERT 0x00040000
! 94: #define DEBUG_PIM_CAND_RP 0x00080000
! 95: #define DEBUG_PIM_MRT 0x00100000
! 96: #define DEBUG_PIM_TIMER 0x00200000
! 97: #define DEBUG_PIM_RPF 0x00400000
! 98: #define DEBUG_RPF DEBUG_PIM_RPF
! 99: #define DEBUG_PIM_DETAIL 0x00800000
! 100: #define DEBUG_PIM ( DEBUG_PIM_HELLO | DEBUG_PIM_REGISTER | \
! 101: DEBUG_PIM_JOIN_PRUNE | DEBUG_PIM_BOOTSTRAP | \
! 102: DEBUG_PIM_ASSERT | DEBUG_PIM_CAND_RP | \
! 103: DEBUG_PIM_MRT | DEBUG_PIM_TIMER | \
! 104: DEBUG_PIM_RPF | DEBUG_PIM_GRAFT )
! 105:
! 106: #define DEBUG_MRT ( DEBUG_DVMRP_ROUTE | DEBUG_PIM_MRT )
! 107: #define DEBUG_NEIGHBORS ( DEBUG_DVMRP_PEER | DEBUG_PIM_HELLO )
! 108: #define DEBUG_TIMER ( DEBUG_IGMP_TIMER | DEBUG_DVMRP_TIMER | \
! 109: DEBUG_PIM_TIMER )
! 110: #define DEBUG_ASSERT ( DEBUG_PIM_ASSERT )
! 111: #define DEBUG_ALL 0xffffffff
! 112:
! 113:
! 114: #define DEBUG_DEFAULT 0xffffffff/* default if "-d" given without value */
! 115:
! 116:
! 117:
! 118:
! 119:
! 120:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>