OpenVPN
Macros
errlevel.h File Reference
#include "error.h"
Include dependency graph for errlevel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEBUG_LEVEL_USEC_TIME   4
 
#define P2P_ERROR_DELAY_MS   0
 
#define LOG_RW
 
#define M_VERB0   LOGLEV(0, 0, 0) /* Messages displayed even at --verb 0 (fatal errors only) */
 
#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_REPLAY_ERRORS   LOGLEV(1, 6, M_NONFATAL) /* show packet replay errors */
 
#define D_STREAM_ERRORS   LOGLEV(1, 7, M_NONFATAL) /* TCP stream error requiring restart */
 
#define D_IMPORT_ERRORS   LOGLEV(1, 8, M_NONFATAL) /* show server import option errors */
 
#define D_MULTI_ERRORS   LOGLEV(1, 9, M_NONFATAL) /* show multi-client server errors */
 
#define D_EVENT_ERRORS   LOGLEV(1, 10, M_NONFATAL) /* show event.[ch] errors */
 
#define D_PUSH_ERRORS   LOGLEV(1, 11, M_NONFATAL) /* show push/pull errors */
 
#define D_PID_PERSIST   LOGLEV(1, 12, M_NONFATAL) /* show packet_id persist errors */
 
#define D_FRAG_ERRORS   LOGLEV(1, 13, M_NONFATAL) /* show fragmentation errors */
 
#define D_ALIGN_ERRORS   LOGLEV(1, 14, M_NONFATAL) /* show bad struct alignments */
 
#define D_HANDSHAKE   LOGLEV(2, 20, 0) /* show data & control channel handshakes */
 
#define D_CLOSE   LOGLEV(2, 22, 0) /* show socket and TUN/TAP close */
 
#define D_PROXY   LOGLEV(2, 24, 0) /* show http proxy control packets */
 
#define D_ARGV   LOGLEV(2, 25, 0) /* show struct argv errors */
 
#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, 0, 0) /* show routes added and deleted (don't mute) */
 
#define D_TUNTAP_INFO   LOGLEV(3, 32, 0) /* show debugging info from TUN/TAP driver */
 
#define D_RESTART   LOGLEV(3, 33, 0) /* show certain restart messages */
 
#define D_PUSH   LOGLEV(3, 34, 0) /* show push/pull info */
 
#define D_IFCONFIG_POOL   LOGLEV(3, 35, 0) /* show ifconfig pool info */
 
#define D_AUTH   LOGLEV(3, 37, 0) /* show user/pass auth info */
 
#define D_MULTI_LOW   LOGLEV(3, 38, 0) /* show point-to-multipoint low-freq debug info */
 
#define D_PLUGIN   LOGLEV(3, 39, 0) /* show plugin calls */
 
#define D_MANAGEMENT   LOGLEV(3, 40, 0) /* show --management info */
 
#define D_SCHED_EXIT   LOGLEV(3, 41, 0) /* show arming of scheduled exit */
 
#define D_ROUTE_QUOTA   LOGLEV(3, 42, 0) /* show route quota exceeded messages */
 
#define D_OSBUF   LOGLEV(3, 43, 0) /* show socket/tun/tap buffer sizes */
 
#define D_PS_PROXY   LOGLEV(3, 44, 0) /* messages related to --port-share option */
 
#define D_PF_INFO   LOGLEV(3, 45, 0) /* packet filter informational messages */
 
#define D_SHOW_PARMS   LOGLEV(4, 50, 0) /* show all parameters on program initiation */
 
#define D_SHOW_OCC   LOGLEV(4, 51, 0) /* show options compatibility string */
 
#define D_LOW   LOGLEV(4, 52, 0) /* miscellaneous low-frequency debug info */
 
#define D_DHCP_OPT   LOGLEV(4, 53, 0) /* show DHCP options binary string */
 
#define D_MBUF   LOGLEV(4, 54, 0) /* mbuf.[ch] routines */
 
#define D_PACKET_TRUNC_ERR   LOGLEV(4, 55, 0) /* PACKET_TRUNCATION_CHECK */
 
#define D_PF_DROPPED   LOGLEV(4, 56, 0) /* packet filter dropped a packet */
 
#define D_MULTI_DROPPED   LOGLEV(4, 57, 0) /* show point-to-multipoint packet drops */
 
#define D_MULTI_MEDIUM   LOGLEV(4, 58, 0) /* show medium frequency multi messages */
 
#define D_X509_ATTR   LOGLEV(4, 59, 0) /* show x509-track attributes on connection */
 
#define D_INIT_MEDIUM   LOGLEV(4, 60, 0) /* show medium frequency init messages */
 
#define D_MTU_INFO   LOGLEV(4, 61, 0) /* show terse MTU info */
 
#define D_PID_DEBUG_LOW   LOGLEV(4, 63, 0) /* show low-freq packet-id debugging info */
 
#define D_PID_DEBUG_MEDIUM   LOGLEV(4, 64, 0) /* show medium-freq packet-id debugging info */
 
#define D_LOG_RW   LOGLEV(5, 0, 0) /* Print 'R' or 'W' to stdout for read/write */
 
#define D_LINK_RW   LOGLEV(6, 69, M_DEBUG) /* show TCP/UDP reads/writes (terse) */
 
#define D_TUN_RW   LOGLEV(6, 69, M_DEBUG) /* show TUN/TAP reads/writes */
 
#define D_TAP_WIN_DEBUG   LOGLEV(6, 69, M_DEBUG) /* show TAP-Windows driver debug info */
 
#define D_CLIENT_NAT   LOGLEV(6, 69, M_DEBUG) /* show client NAT 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_MTU_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show MTU 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_CONNECTION_LIST   LOGLEV(7, 70, M_DEBUG) /* show <connection> list info */
 
#define D_SCRIPT   LOGLEV(7, 70, M_DEBUG) /* show parms & env vars passed to scripts */
 
#define D_SHOW_NET   LOGLEV(7, 70, M_DEBUG) /* show routing table and adapter list */
 
#define D_ROUTE_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show verbose route.[ch] output */
 
#define D_TLS_STATE_ERRORS   LOGLEV(7, 70, M_DEBUG) /* no TLS state for client */
 
#define D_SEMAPHORE_LOW   LOGLEV(7, 70, M_DEBUG) /* show Win32 semaphore waits (low freq) */
 
#define D_SEMAPHORE   LOGLEV(7, 70, M_DEBUG) /* show Win32 semaphore waits */
 
#define D_TEST_FILE   LOGLEV(7, 70, M_DEBUG) /* show test_file() calls */
 
#define D_MANAGEMENT_DEBUG   LOGLEV(3, 70, M_DEBUG) /* show --management debug info */
 
#define D_PLUGIN_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show verbose plugin calls */
 
#define D_SOCKET_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show socket.[ch] debugging info */
 
#define D_SHOW_PKCS11   LOGLEV(7, 70, M_DEBUG) /* show PKCS#11 actions */
 
#define D_ALIGN_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show verbose struct alignment info */
 
#define D_PACKET_TRUNC_DEBUG   LOGLEV(7, 70, M_DEBUG) /* PACKET_TRUNCATION_CHECK verbose */
 
#define D_PING   LOGLEV(7, 70, M_DEBUG) /* PING send/receive messages */
 
#define D_PS_PROXY_DEBUG   LOGLEV(7, 70, M_DEBUG) /* port share proxy debug */
 
#define D_TLS_KEYSELECT   LOGLEV(7, 70, M_DEBUG) /* show information on key selection for data channel */
 
#define D_ARGV_PARSE_CMD   LOGLEV(7, 70, M_DEBUG) /* show parse_line() errors in argv_parse_cmd */
 
#define D_CRYPTO_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show detailed info from crypto.c routines */
 
#define D_PID_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show packet-id debugging info */
 
#define D_PF_DROPPED_BCAST   LOGLEV(7, 71, M_DEBUG) /* packet filter dropped a broadcast packet */
 
#define D_PF_DEBUG   LOGLEV(7, 72, M_DEBUG) /* packet filter debugging, must also define PF_DEBUG in pf.h */
 
#define D_PUSH_DEBUG   LOGLEV(7, 73, M_DEBUG) /* show push/pull debugging info */
 
#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_MULTI_TCP   LOGLEV(8, 70, M_DEBUG) /* show debug info from mtcp.c */
 
#define D_TLS_DEBUG   LOGLEV(9, 70, M_DEBUG) /* show detailed info from TLS 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_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_PKCS11_DEBUG   LOGLEV(9, 70, M_DEBUG) /* show PKCS#11 debugging */
 
#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 */
 

Macro Definition Documentation

◆ D_ALIGN_DEBUG

#define D_ALIGN_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show verbose struct alignment info */

Definition at line 138 of file errlevel.h.

Referenced by string_replace_leading().

◆ D_ALIGN_ERRORS

#define D_ALIGN_ERRORS   LOGLEV(1, 14, M_NONFATAL) /* show bad struct alignments */

Definition at line 70 of file errlevel.h.

Referenced by string_replace_leading().

◆ D_ARGV

#define D_ARGV   LOGLEV(2, 25, 0) /* show struct argv errors */

Definition at line 75 of file errlevel.h.

◆ D_ARGV_PARSE_CMD

#define D_ARGV_PARSE_CMD   LOGLEV(7, 70, M_DEBUG) /* show parse_line() errors in argv_parse_cmd */

Definition at line 143 of file errlevel.h.

Referenced by argv_parse_cmd().

◆ D_AUTH

#define D_AUTH   LOGLEV(3, 37, 0) /* show user/pass auth info */

Definition at line 85 of file errlevel.h.

◆ D_CLIENT_NAT

#define D_CLIENT_NAT   LOGLEV(6, 69, M_DEBUG) /* show client NAT debug info */

Definition at line 115 of file errlevel.h.

Referenced by client_nat_transform().

◆ D_CLOSE

#define D_CLOSE   LOGLEV(2, 22, 0) /* show socket and TUN/TAP close */

Definition at line 73 of file errlevel.h.

Referenced by do_close_tun_simple().

◆ D_COMP

#define D_COMP   LOGLEV(9, 70, M_DEBUG) /* show compression info */

Definition at line 160 of file errlevel.h.

◆ D_COMP_ERRORS

#define D_COMP_ERRORS   LOGLEV(1, 5, M_NONFATAL) /* show compression errors */

Definition at line 61 of file errlevel.h.

◆ D_COMP_LOW

#define D_COMP_LOW   LOGLEV(7, 70, M_DEBUG) /* show adaptive compression state changes */

Definition at line 125 of file errlevel.h.

◆ D_CONNECTION_LIST

#define D_CONNECTION_LIST   LOGLEV(7, 70, M_DEBUG) /* show <connection> list info */

Definition at line 126 of file errlevel.h.

◆ D_CRYPT_ERRORS

#define D_CRYPT_ERRORS   LOGLEV(1, 2, M_NONFATAL) /* show errors from encrypt/decrypt */

◆ D_CRYPTO_DEBUG

#define D_CRYPTO_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show detailed info from crypto.c routines */

◆ D_DHCP_OPT

#define D_DHCP_OPT   LOGLEV(4, 53, 0) /* show DHCP options binary string */

Definition at line 98 of file errlevel.h.

Referenced by open_tun().

◆ D_EVENT_ERRORS

#define D_EVENT_ERRORS   LOGLEV(1, 10, M_NONFATAL) /* show event.[ch] errors */

Definition at line 66 of file errlevel.h.

Referenced by we_ctl(), and we_init().

◆ D_EVENT_WAIT

#define D_EVENT_WAIT   LOGLEV(8, 70, M_DEBUG) /* show detailed info from event waits */

Definition at line 156 of file errlevel.h.

Referenced by io_wait_dowork(), we_ctl(), we_init(), and we_wait().

◆ D_FRAG_DEBUG

#define D_FRAG_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show fragment debugging info */

Definition at line 120 of file errlevel.h.

Referenced by fragment_incoming(), and fragment_prepend_flags().

◆ D_FRAG_ERRORS

#define D_FRAG_ERRORS   LOGLEV(1, 13, M_NONFATAL) /* show fragmentation errors */

Definition at line 69 of file errlevel.h.

Referenced by fragment_incoming(), fragment_outgoing(), and fragment_ttl_reap().

◆ D_GENKEY

#define D_GENKEY   LOGLEV(3, 31, 0) /* print message after key generation */

Definition at line 79 of file errlevel.h.

Referenced by do_genkey(), and tls_crypt_v2_write_client_key_file().

◆ D_GREMLIN

#define D_GREMLIN   LOGLEV(3, 30, 0) /* show simulated outage info from gremlin module */

Definition at line 78 of file errlevel.h.

Referenced by route_quota_exceeded().

◆ D_GREMLIN_VERBOSE

#define D_GREMLIN_VERBOSE   LOGLEV(8, 70, M_DEBUG) /* show verbose info from gremlin module */

Definition at line 154 of file errlevel.h.

◆ D_HANDSHAKE

#define D_HANDSHAKE   LOGLEV(2, 20, 0) /* show data & control channel handshakes */

◆ D_HANDSHAKE_VERBOSE

#define D_HANDSHAKE_VERBOSE   LOGLEV(8, 70, M_DEBUG) /* show detailed description of each handshake */

Definition at line 150 of file errlevel.h.

Referenced by bio_read(), bio_write(), and info_callback().

◆ D_IFCONFIG_POOL

#define D_IFCONFIG_POOL   LOGLEV(3, 35, 0) /* show ifconfig pool info */

Definition at line 84 of file errlevel.h.

Referenced by ifconfig_pool_init(), and ifconfig_pool_read().

◆ D_IMPORT_ERRORS

#define D_IMPORT_ERRORS   LOGLEV(1, 8, M_NONFATAL) /* show server import option errors */

◆ D_INIT_MEDIUM

#define D_INIT_MEDIUM   LOGLEV(4, 60, 0) /* show medium frequency init messages */

Definition at line 105 of file errlevel.h.

Referenced by do_init_crypto_tls_c1(), and linksock_print_addr().

◆ D_INTERVAL

#define D_INTERVAL   LOGLEV(8, 70, M_DEBUG) /* show interval.h debugging info */

◆ D_LINK_ERRORS

#define D_LINK_ERRORS   LOGLEV(1, 1, M_NONFATAL) /* show link errors from main event loop */

◆ D_LINK_RW

#define D_LINK_RW   LOGLEV(6, 69, M_DEBUG) /* show TCP/UDP reads/writes (terse) */

Definition at line 112 of file errlevel.h.

Referenced by process_incoming_link_part1(), and process_outgoing_link().

◆ D_LINK_RW_VERBOSE

#define D_LINK_RW_VERBOSE   LOGLEV(9, 70, M_DEBUG) /* show link reads/writes with greater verbosity */

Definition at line 165 of file errlevel.h.

◆ D_LOG_RW

#define D_LOG_RW   LOGLEV(5, 0, 0) /* Print 'R' or 'W' to stdout for read/write */

Definition at line 110 of file errlevel.h.

Referenced by init_verb_mute().

◆ D_LOW

#define D_LOW   LOGLEV(4, 52, 0) /* miscellaneous low-frequency debug info */

◆ D_MANAGEMENT

#define D_MANAGEMENT   LOGLEV(3, 40, 0) /* show --management info */

◆ D_MANAGEMENT_DEBUG

#define D_MANAGEMENT_DEBUG   LOGLEV(3, 70, M_DEBUG) /* show --management debug info */

Definition at line 134 of file errlevel.h.

Referenced by man_process_command().

◆ D_MBUF

#define D_MBUF   LOGLEV(4, 54, 0) /* mbuf.[ch] routines */

Definition at line 99 of file errlevel.h.

Referenced by mbuf_dereference_instance().

◆ D_MSS

#define D_MSS   LOGLEV(7, 70, M_DEBUG) /* show MSS adjustments */

Definition at line 124 of file errlevel.h.

Referenced by mss_fixup_dowork().

◆ D_MTU_DEBUG

#define D_MTU_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show MTU debugging info */

◆ D_MTU_INFO

#define D_MTU_INFO   LOGLEV(4, 61, 0) /* show terse MTU info */

◆ D_MULTI_DEBUG

#define D_MULTI_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show medium-freq multi debugging info */

◆ D_MULTI_DROPPED

#define D_MULTI_DROPPED   LOGLEV(4, 57, 0) /* show point-to-multipoint packet drops */

◆ D_MULTI_ERRORS

#define D_MULTI_ERRORS   LOGLEV(1, 9, M_NONFATAL) /* show multi-client server errors */

◆ D_MULTI_LOW

#define D_MULTI_LOW   LOGLEV(3, 38, 0) /* show point-to-multipoint low-freq debug info */

◆ D_MULTI_MEDIUM

#define D_MULTI_MEDIUM   LOGLEV(4, 58, 0) /* show medium frequency multi messages */

◆ D_MULTI_TCP

#define D_MULTI_TCP   LOGLEV(8, 70, M_DEBUG) /* show debug info from mtcp.c */

◆ D_OPENSSL_LOCK

#define D_OPENSSL_LOCK   LOGLEV(11, 70, M_DEBUG) /* show OpenSSL locks */

Definition at line 173 of file errlevel.h.

◆ D_OSBUF

#define D_OSBUF   LOGLEV(3, 43, 0) /* show socket/tun/tap buffer sizes */

Definition at line 91 of file errlevel.h.

Referenced by open_null(), socket_set_buffers(), and socket_set_tcp_nodelay().

◆ D_PACKET_CONTENT

#define D_PACKET_CONTENT   LOGLEV(9, 70, M_DEBUG) /* show before/after encryption packet content */

◆ D_PACKET_TRUNC_DEBUG

#define D_PACKET_TRUNC_DEBUG   LOGLEV(7, 70, M_DEBUG) /* PACKET_TRUNCATION_CHECK verbose */

Definition at line 139 of file errlevel.h.

Referenced by is_ipv6().

◆ D_PACKET_TRUNC_ERR

#define D_PACKET_TRUNC_ERR   LOGLEV(4, 55, 0) /* PACKET_TRUNCATION_CHECK */

Definition at line 100 of file errlevel.h.

Referenced by is_ipv6().

◆ D_PF_DEBUG

#define D_PF_DEBUG   LOGLEV(7, 72, M_DEBUG) /* packet filter debugging, must also define PF_DEBUG in pf.h */

Definition at line 147 of file errlevel.h.

◆ D_PF_DROPPED

#define D_PF_DROPPED   LOGLEV(4, 56, 0) /* packet filter dropped a packet */

Definition at line 101 of file errlevel.h.

Referenced by multi_process_incoming_link(), and multi_process_incoming_tun().

◆ D_PF_DROPPED_BCAST

#define D_PF_DROPPED_BCAST   LOGLEV(7, 71, M_DEBUG) /* packet filter dropped a broadcast packet */

Definition at line 146 of file errlevel.h.

Referenced by multi_bcast().

◆ D_PF_INFO

#define D_PF_INFO   LOGLEV(3, 45, 0) /* packet filter informational messages */

Definition at line 93 of file errlevel.h.

◆ D_PID_DEBUG

#define D_PID_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show packet-id debugging info */

Definition at line 145 of file errlevel.h.

Referenced by packet_id_free(), packet_id_init(), and packet_id_test().

◆ D_PID_DEBUG_LOW

#define D_PID_DEBUG_LOW   LOGLEV(4, 63, 0) /* show low-freq packet-id debugging info */

Definition at line 107 of file errlevel.h.

Referenced by packet_id_test().

◆ D_PID_DEBUG_MEDIUM

#define D_PID_DEBUG_MEDIUM   LOGLEV(4, 64, 0) /* show medium-freq packet-id debugging info */

Definition at line 108 of file errlevel.h.

Referenced by packet_id_test().

◆ D_PID_PERSIST

#define D_PID_PERSIST   LOGLEV(1, 12, M_NONFATAL) /* show packet_id persist errors */

◆ D_PID_PERSIST_DEBUG

#define D_PID_PERSIST_DEBUG   LOGLEV(9, 70, M_DEBUG) /* show packet-id persist debugging info */

Definition at line 164 of file errlevel.h.

Referenced by packet_id_persist_load(), and packet_id_persist_save().

◆ D_PING

#define D_PING   LOGLEV(7, 70, M_DEBUG) /* PING send/receive messages */

Definition at line 140 of file errlevel.h.

Referenced by check_ping_send_dowork(), and process_incoming_link_part2().

◆ D_PKCS11_DEBUG

#define D_PKCS11_DEBUG   LOGLEV(9, 70, M_DEBUG) /* show PKCS#11 debugging */

Definition at line 168 of file errlevel.h.

◆ D_PLUGIN

#define D_PLUGIN   LOGLEV(3, 39, 0) /* show plugin calls */

Definition at line 87 of file errlevel.h.

Referenced by plugin_call_item(), plugin_close_item(), and plugin_open_item().

◆ D_PLUGIN_DEBUG

#define D_PLUGIN_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show verbose plugin calls */

Definition at line 135 of file errlevel.h.

Referenced by plugin_call_item(), plugin_open_item(), and plugin_vlog().

◆ D_PROXY

#define D_PROXY   LOGLEV(2, 24, 0) /* show http proxy control packets */

◆ D_PS_PROXY

#define D_PS_PROXY   LOGLEV(3, 44, 0) /* messages related to --port-share option */

Definition at line 92 of file errlevel.h.

◆ D_PS_PROXY_DEBUG

#define D_PS_PROXY_DEBUG   LOGLEV(7, 70, M_DEBUG) /* port share proxy debug */

Definition at line 141 of file errlevel.h.

◆ D_PUSH

#define D_PUSH   LOGLEV(3, 34, 0) /* show push/pull info */

◆ D_PUSH_DEBUG

#define D_PUSH_DEBUG   LOGLEV(7, 73, M_DEBUG) /* show push/pull debugging info */

Definition at line 148 of file errlevel.h.

Referenced by push_remove_option().

◆ D_PUSH_ERRORS

#define D_PUSH_ERRORS   LOGLEV(1, 11, M_NONFATAL) /* show push/pull errors */

◆ D_READ_WRITE

#define D_READ_WRITE   LOGLEV(9, 70, M_DEBUG) /* show all tun/tcp/udp reads/writes/opens */

Definition at line 161 of file errlevel.h.

Referenced by init_verb_mute(), link_socket_bad_outgoing_addr(), and open_null().

◆ D_REGISTRY

#define D_REGISTRY   LOGLEV(11, 70, M_DEBUG) /* win32 registry debugging info */

Definition at line 172 of file errlevel.h.

Referenced by get_panel_reg(), and get_tap_reg().

◆ D_REL_DEBUG

#define D_REL_DEBUG   LOGLEV(8, 70, M_DEBUG) /* show detailed info from reliable routines */

◆ D_REL_LOW

#define D_REL_LOW   LOGLEV(7, 70, M_DEBUG) /* show low frequency info from reliable layer */

◆ D_REPLAY_ERRORS

#define D_REPLAY_ERRORS   LOGLEV(1, 6, M_NONFATAL) /* show packet replay errors */

Definition at line 62 of file errlevel.h.

Referenced by crypto_check_replay().

◆ D_RESOLVE_ERRORS

#define D_RESOLVE_ERRORS   LOGLEV(1, 4, M_NONFATAL) /* show hostname resolve errors */

Definition at line 60 of file errlevel.h.

Referenced by openvpn_getaddrinfo().

◆ D_RESTART

#define D_RESTART   LOGLEV(3, 33, 0) /* show certain restart messages */

Definition at line 82 of file errlevel.h.

Referenced by socket_restart_pause().

◆ D_ROUTE

#define D_ROUTE   LOGLEV(3, 0, 0) /* show routes added and deleted (don't mute) */

◆ D_ROUTE_DEBUG

#define D_ROUTE_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show verbose route.[ch] output */

◆ D_ROUTE_QUOTA

#define D_ROUTE_QUOTA   LOGLEV(3, 42, 0) /* show route quota exceeded messages */

Definition at line 90 of file errlevel.h.

Referenced by route_quota_exceeded().

◆ D_SCHED_EXIT

#define D_SCHED_EXIT   LOGLEV(3, 41, 0) /* show arming of scheduled exit */

Definition at line 89 of file errlevel.h.

Referenced by schedule_exit().

◆ D_SCHEDULER

#define D_SCHEDULER   LOGLEV(8, 70, M_DEBUG) /* show scheduler debugging info */

Definition at line 153 of file errlevel.h.

Referenced by schedule_add_modify(), and schedule_find_least().

◆ D_SCRIPT

#define D_SCRIPT   LOGLEV(7, 70, M_DEBUG) /* show parms & env vars passed to scripts */

Definition at line 127 of file errlevel.h.

◆ D_SEMAPHORE

#define D_SEMAPHORE   LOGLEV(7, 70, M_DEBUG) /* show Win32 semaphore waits */

Definition at line 132 of file errlevel.h.

Referenced by semaphore_close(), semaphore_lock(), semaphore_open(), and semaphore_release().

◆ D_SEMAPHORE_LOW

#define D_SEMAPHORE_LOW   LOGLEV(7, 70, M_DEBUG) /* show Win32 semaphore waits (low freq) */

Definition at line 131 of file errlevel.h.

Referenced by semaphore_lock().

◆ D_SHAPER_DEBUG

#define D_SHAPER_DEBUG   LOGLEV(10, 70, M_DEBUG) /* show traffic shaper info */

Definition at line 170 of file errlevel.h.

Referenced by shaper_soonest_event().

◆ D_SHOW_KEY_SOURCE

#define D_SHOW_KEY_SOURCE   LOGLEV(7, 70, M_DEBUG) /* show data channel key source entropy */

Definition at line 118 of file errlevel.h.

Referenced by generate_key_random(), key2_print(), key_source_print(), tls1_P_hash(), and tls1_PRF().

◆ D_SHOW_KEYS

#define D_SHOW_KEYS   LOGLEV(7, 70, M_DEBUG) /* show data channel encryption keys */

◆ D_SHOW_NET

#define D_SHOW_NET   LOGLEV(7, 70, M_DEBUG) /* show routing table and adapter list */

Definition at line 128 of file errlevel.h.

Referenced by do_route().

◆ D_SHOW_OCC

#define D_SHOW_OCC   LOGLEV(4, 51, 0) /* show options compatibility string */

◆ D_SHOW_PARMS

#define D_SHOW_PARMS   LOGLEV(4, 50, 0) /* show all parameters on program initiation */

◆ D_SHOW_PKCS11

#define D_SHOW_PKCS11   LOGLEV(7, 70, M_DEBUG) /* show PKCS#11 actions */

Definition at line 137 of file errlevel.h.

◆ D_SOCKET_DEBUG

#define D_SOCKET_DEBUG   LOGLEV(7, 70, M_DEBUG) /* show socket.[ch] debugging info */

Definition at line 136 of file errlevel.h.

Referenced by create_socket(), openvpn_getaddrinfo(), phase2_inetd(), and resolve_remote().

◆ D_STREAM_DEBUG

#define D_STREAM_DEBUG   LOGLEV(9, 70, M_DEBUG) /* show TCP stream debug info */

◆ D_STREAM_ERRORS

#define D_STREAM_ERRORS   LOGLEV(1, 7, M_NONFATAL) /* TCP stream error requiring restart */

◆ D_TAP_WIN_DEBUG

#define D_TAP_WIN_DEBUG   LOGLEV(6, 69, M_DEBUG) /* show TAP-Windows driver debug info */

Definition at line 114 of file errlevel.h.

Referenced by pre_select(), and tun_show_debug().

◆ D_TEST_FILE

#define D_TEST_FILE   LOGLEV(7, 70, M_DEBUG) /* show test_file() calls */

Definition at line 133 of file errlevel.h.

Referenced by platform_test_file().

◆ D_TLS_DEBUG

#define D_TLS_DEBUG   LOGLEV(9, 70, M_DEBUG) /* show detailed info from TLS routines */

◆ D_TLS_DEBUG_LOW

#define D_TLS_DEBUG_LOW   LOGLEV(3, 20, 0) /* low frequency info from tls_session routines */

◆ D_TLS_DEBUG_MED

#define D_TLS_DEBUG_MED   LOGLEV(8, 70, M_DEBUG) /* limited info from tls_session routines */

◆ D_TLS_ERRORS

#define D_TLS_ERRORS   LOGLEV(1, 3, M_NONFATAL) /* show TLS control channel errors */

◆ D_TLS_KEYSELECT

#define D_TLS_KEYSELECT   LOGLEV(7, 70, M_DEBUG) /* show information on key selection for data channel */

Definition at line 142 of file errlevel.h.

Referenced by tls_pre_decrypt(), tls_pre_encrypt(), and tls_update_remote_addr().

◆ D_TLS_NO_SEND_KEY

#define D_TLS_NO_SEND_KEY   LOGLEV(9, 70, M_DEBUG) /* show when no data channel send-key exists */

Definition at line 163 of file errlevel.h.

◆ D_TLS_STATE_ERRORS

#define D_TLS_STATE_ERRORS   LOGLEV(7, 70, M_DEBUG) /* no TLS state for client */

Definition at line 130 of file errlevel.h.

Referenced by tls_pre_decrypt_lite().

◆ D_TUN_RW

#define D_TUN_RW   LOGLEV(6, 69, M_DEBUG) /* show TUN/TAP reads/writes */

Definition at line 113 of file errlevel.h.

Referenced by process_incoming_tun(), and process_outgoing_tun().

◆ D_TUNTAP_INFO

#define D_TUNTAP_INFO   LOGLEV(3, 32, 0) /* show debugging info from TUN/TAP driver */

◆ D_WIN32_IO

#define D_WIN32_IO   LOGLEV(9, 70, M_DEBUG) /* win32 I/O debugging info */

◆ D_WIN32_IO_LOW

#define D_WIN32_IO_LOW   LOGLEV(7, 70, M_DEBUG) /* low freq win32 I/O debugging info */

Definition at line 121 of file errlevel.h.

Referenced by close_tun().

◆ D_X509_ATTR

#define D_X509_ATTR   LOGLEV(4, 59, 0) /* show x509-track attributes on connection */

Definition at line 104 of file errlevel.h.

Referenced by do_setenv_x509().

◆ DEBUG_LEVEL_USEC_TIME

#define DEBUG_LEVEL_USEC_TIME   4

Definition at line 33 of file errlevel.h.

Referenced by x_msg_va().

◆ LOG_RW

#define LOG_RW

Definition at line 46 of file errlevel.h.

◆ M_INFO

#define M_INFO   LOGLEV(1, 0, 0) /* default informational messages */

Definition at line 55 of file errlevel.h.

Referenced by add_client_nat_to_option_list(), add_option(), add_route_ipv6(), add_routes(), block_dns_msg_handler(), check_add_routes_dowork(), check_addr_clash(), check_inactivity_timeout_dowork(), check_ping_restart_dowork(), check_send_occ_load_test_dowork(), check_server_poll_timeout_dowork(), context_init_1(), delete_route_ipv6(), delete_temp_addresses(), do_close_check_if_restart_permitted(), do_dns6_service(), do_ifconfig_ipv4(), do_ifconfig_ipv6(), do_init_crypto_static(), do_open_tun(), do_route(), do_setup_fast_io(), do_test_crypto(), do_uid_gid_chroot(), do_up(), dont_mute(), env_block(), establish_http_proxy_passthru(), ExecCommand(), frequency_limit_event_allowed(), get_adapter_index(), get_adapter_index_flexible(), get_adapter_info_list(), get_interface_info_list(), get_per_adapter_info(), get_special_addr(), get_user_pass_cr(), ifconfig_pool_read(), ifconfig_pool_write(), ignore_restart_signals(), init_static(), initialization_sequence_completed(), ip_addr_string_to_array(), IsAuthorizedUser(), link_socket_connection_initiated(), linksock_print_addr(), man_process_command(), mroute_extract_addr_ip(), msg_flags_string(), multi_init(), multi_process_signal(), multi_select_virtual_addr(), netsh_command(), netsh_ifconfig(), netsh_ifconfig_options(), ntlm_phase_3(), open_null(), open_tun(), openvpn_main(), output_peer_info_env(), parse_line(), platform_chroot(), platform_group_set(), platform_mlockall(), platform_nice(), platform_user_set(), plugin_vlog(), prepare_push_reply(), process_explicit_exit_notification_init(), process_outgoing_link(), process_received_occ_msg(), process_sigusr2(), read_incoming_tun(), read_key_file(), recv_line(), register_dns_service(), reliable_send_purge(), remap_redirect_gateway_flags(), resolve_remote(), run_up_down(), service_enable_dhcp(), set_lladdr(), setenv_str_ex(), shaper_msg(), socket_bind(), socket_connect(), socket_do_listen(), ssl_set_auth_token(), tap_allow_nonadmin_access_handle(), tcp_connection_established(), test_crypto(), tun_standby(), usage_version(), win32_pause(), win_block_dns_service(), and x_msg_va().

◆ M_VERB0

#define M_VERB0   LOGLEV(0, 0, 0) /* Messages displayed even at --verb 0 (fatal errors only) */

Definition at line 53 of file errlevel.h.

Referenced by receive_auth_failed().

◆ P2P_ERROR_DELAY_MS

#define P2P_ERROR_DELAY_MS   0

Definition at line 41 of file errlevel.h.

Referenced by init_instance().