📄 debug.h
字号:
/* * Copyright (C) 2001, University of California, Santa Barbara * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Other copyrights might apply to parts of this software and are so * noted when applicable. *//* * Parts of this program has been derived from PIM sparse-mode pimd. * The pimd program is covered by the license in the accompanying file * named "LICENSE.pimd". * * The pimd program is COPYRIGHT 1998 by University of Southern California. * */#ifndef _DEBUG#define _DEBUG#include <syslog.h>#include "routingTableEntry.h"#include "rerr.h"#include "rrep.h"#include "rreq.h"extern unsigned int debug;extern u_int32_t tracetag;extern int showtracetags;extern int logToScreen;extern int logToSysLog;extern void log(int severity, int syserr, char *format, ...);extern void trace(u_int32_t tag, char *format, ...);extern void initializeLogging();extern void printRREQ(struct RREQ *rreq);extern void printRREP(struct RREP *rrep);extern void printRERR(struct RERR *rerr);extern void printEntry(struct RoutingTableEntry *entry);extern void printEntryForChange(struct RoutingTableEntry *entry);#define TRACE_INIT 0x00000001#define TRACE_TIMER 0x00000002#define TRACE_RREQ 0x00000004#define TRACE_RREP 0x00000008#define TRACE_RERR 0x00000010#define TRACE_RT 0x00000020#define TRACE_RREQ_RESEND 0x00000040#define TRACE_RT_EXPIRE 0x00000080#define TRACE_MEMORY 0x00000100#define TRACE_AODV_SOCKET 0x00000200#define TRACE_HELLO 0x00000400#define TRACE_LOCAL_REPAIR 0x00000800#define TRACE_REBOOT 0x00001000#define TRACE_SIGNAL 0x00002000#define TRACE_KERNEL_SOCKET 0x00004000#define TRACE_RECENT_RREQ 0x00008000#define TRACE_KERNEL_SOCKET_BAD 0x00010000#define TRACE_CALLOUT 0x00020000#define TRACE_CALLOUT_PERIODIC 0x00040000#define TRACE_CUR 0x00080000#define TRACE_RT_CHANGE 0x00100000#define TRACE_PACKET_INPUT 0x00200000#define TRACE_KOFN 0x00400000#define TRACE_METRIC 0x00800000#define TRACE_DEMO 0x80000000#define TRACE_ALL 0xFFFFFFFF#endif //_DEBUG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -