📄 errlevel.h
字号:
/* * OpenVPN -- An application to securely tunnel IP networks * over a single TCP/UDP port, with support for SSL/TLS-based * session authentication and key exchange, * packet encryption, packet authentication, and * packet compression. * * Copyright (C) 2002-2004 James Yonan <jim@yonan.net> * * 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 (see the file COPYING included with this * distribution); if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */#ifndef ERRLEVEL_H#define ERRLEVEL_H#include "error.h"/* * Debug level at and above where we * display time to microsecond resolution. */#define DEBUG_LEVEL_USEC_TIME 6/* * Enable D_LOG_RW */#define LOG_RW/* * Debugging levels for various kinds * of output. */#define M_INFO LOGLEV(1, 0, 0) /* default informational messages */#define D_LINK_ERRORS LOGLEV(1, 1, M_NONFATAL) /* show link errors from main event loop */#define D_CRYPT_ERRORS LOGLEV(1, 2, M_NONFATAL) /* show errors from encrypt/decrypt */#define D_TLS_ERRORS LOGLEV(1, 3, M_NONFATAL) /* show TLS control channel errors */#define D_RESOLVE_ERRORS LOGLEV(1, 4, M_NONFATAL) /* show hostname resolve errors */#define D_COMP_ERRORS LOGLEV(1, 5, M_NONFATAL) /* show compression errors */#define D_PID_PERSIST LOGLEV(1, 6, M_NONFATAL) /* show packet_id persist errors */#define D_FRAG_ERRORS LOGLEV(1, 7, M_NONFATAL) /* show fragmentation errors */#define D_STREAM_ERRORS LOGLEV(1, 8, M_NONFATAL) /* TCP stream error requiring restart */#define D_MULTI_ERRORS LOGLEV(1, 9, M_NONFATAL) /* show multi-client server errors */#define D_PUSH_ERRORS LOGLEV(1, 10, M_NONFATAL) /* show push/pull errors */#define D_IMPORT_ERRORS LOGLEV(1, 11, M_NONFATAL) /* show server import option errors */#define D_EVENT_ERRORS LOGLEV(1, 12, M_NONFATAL) /* show event.[ch] errors */#define D_HANDSHAKE LOGLEV(2, 20, 0) /* show data & control channel handshakes */#define D_MTU_INFO LOGLEV(2, 21, 0) /* show terse MTU info */#define D_CLOSE LOGLEV(2, 22, 0) /* show socket and TUN/TAP close */#define D_SHOW_OCC_HASH LOGLEV(2, 23, 0) /* show MD5 hash of option compatibility string */#define D_PROXY LOGLEV(2, 24, 0) /* show http proxy control packets */#define D_TLS_DEBUG_LOW LOGLEV(3, 20, 0) /* low frequency info from tls_session routines */#define D_GREMLIN LOGLEV(3, 30, 0) /* show simulated outage info from gremlin module */#define D_GENKEY LOGLEV(3, 31, 0) /* print message after key generation */#define D_ROUTE LOGLEV(3, 32, 0) /* show routes added and deleted */#define D_TUNTAP_INFO LOGLEV(3, 33, 0) /* show debugging info from TUN/TAP driver */#define D_RESTART LOGLEV(3, 34, 0) /* show certain restart messages */#define D_PUSH LOGLEV(3, 35, 0) /* show push/pull info */#define D_IFCONFIG_POOL LOGLEV(3, 36, 0) /* show ifconfig pool info */#define D_MULTI_LOW LOGLEV(3, 37, 0) /* show point-to-multipoint low-freq debug info */#define D_BACKTRACK LOGLEV(3, 38, 0) /* show replay backtracks */#define D_SHOW_PARMS LOGLEV(4, 41, 0) /* show all parameters on program initiation */#define D_SHOW_OCC LOGLEV(4, 42, 0) /* show options compatibility string */#define D_SEMAPHORE_LOW LOGLEV(4, 43, 0) /* show Win32 semaphore waits (low freq) */#define D_LOW LOGLEV(4, 44, 0) /* miscellaneous low-frequency debug info */#define D_DHCP_OPT LOGLEV(4, 45, 0) /* show DHCP options binary string */#define D_OSBUF LOGLEV(4, 46, 0) /* show socket/tun/tap buffer sizes */#define D_MBUF LOGLEV(4, 47, 0) /* mbuf.[ch] routines */#define D_LOG_RW LOGLEV(5, 0, 0) /* Print 'R' or 'W' to stdout for read/write */#define D_LINK_RW LOGLEV(6, 60, M_DEBUG) /* show TCP/UDP reads/writes (terse) */#define D_TAP_WIN32_DEBUG LOGLEV(6, 60, M_DEBUG) /* show TAP-Win32 driver debug info */#define D_SHOW_KEYS LOGLEV(7, 70, M_DEBUG) /* show data channel encryption keys */#define D_SHOW_KEY_SOURCE LOGLEV(7, 70, M_DEBUG) /* show data channel key source entropy */#define D_REL_LOW LOGLEV(7, 70, M_DEBUG) /* show low frequency info from reliable layer */#define D_FRAG_DEBUG LOGLEV(7, 70, M_DEBUG) /* show fragment debugging info */#define D_WIN32_IO_LOW LOGLEV(7, 70, M_DEBUG) /* low freq win32 I/O debugging info */#define D_SEMAPHORE LOGLEV(7, 70, M_DEBUG) /* show Win32 semaphore waits */#define D_MTU_DEBUG LOGLEV(7, 70, M_DEBUG) /* show MTU debugging info */#define D_PID_DEBUG_LOW LOGLEV(7, 70, M_DEBUG) /* show low-freq packet-id debugging info */#define D_MULTI_DEBUG LOGLEV(7, 70, M_DEBUG) /* show medium-freq multi debugging info */#define D_MSS LOGLEV(7, 70, M_DEBUG) /* show MSS adjustments */#define D_COMP_LOW LOGLEV(7, 70, M_DEBUG) /* show adaptive compression state changes */#define D_REMOTE_LIST LOGLEV(7, 70, M_DEBUG) /* show --remote list */#define D_SETENV LOGLEV(7, 70, M_DEBUG) /* show environmental variable assignments */#define D_HANDSHAKE_VERBOSE LOGLEV(8, 70, M_DEBUG) /* show detailed description of each handshake */#define D_TLS_DEBUG_MED LOGLEV(8, 70, M_DEBUG) /* limited info from tls_session routines */#define D_INTERVAL LOGLEV(8, 70, M_DEBUG) /* show interval.h debugging info */#define D_SCHEDULER LOGLEV(8, 70, M_DEBUG) /* show scheduler debugging info */#define D_GREMLIN_VERBOSE LOGLEV(8, 70, M_DEBUG) /* show verbose info from gremlin module */#define D_REL_DEBUG LOGLEV(8, 70, M_DEBUG) /* show detailed info from reliable routines */#define D_EVENT_WAIT LOGLEV(8, 70, M_DEBUG) /* show detailed info from event waits */#define D_TUN_RW LOGLEV(8, 70, M_DEBUG) /* show TUN/TAP reads/writes */#define D_TLS_DEBUG LOGLEV(9, 70, M_DEBUG) /* show detailed info from TLS routines */#define D_CRYPTO_DEBUG LOGLEV(9, 70, M_DEBUG) /* show detailed info from crypto.c routines */#define D_COMP LOGLEV(9, 70, M_DEBUG) /* show compression info */#define D_READ_WRITE LOGLEV(9, 70, M_DEBUG) /* show all tun/tcp/udp reads/writes/opens */#define D_PACKET_CONTENT LOGLEV(9, 70, M_DEBUG) /* show before/after encryption packet content */#define D_TLS_NO_SEND_KEY LOGLEV(9, 70, M_DEBUG) /* show when no data channel send-key exists */#define D_THREAD_DEBUG LOGLEV(9, 70, M_DEBUG) /* show pthread debug information */#define D_PID_DEBUG LOGLEV(9, 70, M_DEBUG) /* show packet-id debugging info */#define D_PID_PERSIST_DEBUG LOGLEV(9, 70, M_DEBUG) /* show packet-id persist debugging info */#define D_LINK_RW_VERBOSE LOGLEV(9, 70, M_DEBUG) /* show link reads/writes with greater verbosity */#define D_STREAM_DEBUG LOGLEV(9, 70, M_DEBUG) /* show TCP stream debug info */#define D_WIN32_IO LOGLEV(9, 70, M_DEBUG) /* win32 I/O debugging info */#define D_SHAPER_DEBUG LOGLEV(10, 70, M_DEBUG) /* show traffic shaper info */#define D_REGISTRY LOGLEV(11, 70, M_DEBUG) /* win32 registry debugging info */#define D_OPENSSL_LOCK LOGLEV(11, 70, M_DEBUG) /* show OpenSSL locks */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -