~ubuntu-branches/ubuntu/hardy/openvpn/hardy-security

« back to all changes in this revision

Viewing changes to errlevel.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2005-01-05 19:03:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050105190311-mvqzpuhmlvobg9nh
Tags: 1.99+2.rc6-1
* The 'Three Wise Men' release.
* New upstream release.
* Update README.Debian with comments on changed string remapping.
  Thanks ron@debian.org for noting this first. (Closes: #288669)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 * Debug level at and above where we
33
33
 * display time to microsecond resolution.
34
34
 */
35
 
#define DEBUG_LEVEL_USEC_TIME  6
 
35
#define DEBUG_LEVEL_USEC_TIME 4
 
36
 
 
37
/*
 
38
 * In non-server modes, delay n milliseconds after certain kinds
 
39
 * of non-fatal network errors to avoid a barrage of errors.
 
40
 *
 
41
 * To disable all delays, set to 0.
 
42
 */
 
43
#define P2P_ERROR_DELAY_MS 0
 
44
 
 
45
/*
 
46
 * Enable D_LOG_RW
 
47
 */
 
48
#define LOG_RW
36
49
 
37
50
/*
38
51
 * Debugging levels for various kinds
39
52
 * of output.
40
53
 */
41
54
 
 
55
#define M_VERB0              LOGLEV(0, 0, 0)         /* Messages displayed even at --verb 0 (fatal errors only) */
 
56
 
42
57
#define M_INFO               LOGLEV(1, 0, 0)         /* default informational messages */
43
58
 
44
 
#define D_LINK_ERRORS        LOGLEV(1, 10, M_NONFATAL)   /* show link errors from main event loop */
45
 
#define D_CRYPT_ERRORS       LOGLEV(1, 11, M_NONFATAL)   /* show errors from encrypt/decrypt */
46
 
#define D_TLS_ERRORS         LOGLEV(1, 12, M_NONFATAL)   /* show TLS control channel errors */
47
 
#define D_RESOLVE_ERRORS     LOGLEV(1, 13, M_NONFATAL)   /* show hostname resolve errors */
48
 
#define D_COMP_ERRORS        LOGLEV(1, 14, M_NONFATAL)   /* show compression errors */
49
 
#define D_PID_PERSIST        LOGLEV(1, 15, M_NONFATAL)   /* show packet_id persist errors */
50
 
#define D_FRAG_ERRORS        LOGLEV(1, 16, M_NONFATAL)   /* show fragmentation errors */
51
 
#define D_STREAM_ERRORS      LOGLEV(1, 17, M_NONFATAL)   /* TCP stream error requiring restart */
 
59
#define D_LINK_ERRORS        LOGLEV(1, 1, M_NONFATAL)   /* show link errors from main event loop */
 
60
#define D_CRYPT_ERRORS       LOGLEV(1, 2, M_NONFATAL)   /* show errors from encrypt/decrypt */
 
61
#define D_TLS_ERRORS         LOGLEV(1, 3, M_NONFATAL)   /* show TLS control channel errors */
 
62
#define D_RESOLVE_ERRORS     LOGLEV(1, 4, M_NONFATAL)   /* show hostname resolve errors */
 
63
#define D_COMP_ERRORS        LOGLEV(1, 5, M_NONFATAL)   /* show compression errors */
 
64
#define D_REPLAY_ERRORS      LOGLEV(1, 6, M_NONFATAL)   /* show packet replay errors */
 
65
#define D_STREAM_ERRORS      LOGLEV(1, 7, M_NONFATAL)    /* TCP stream error requiring restart */
 
66
#define D_IMPORT_ERRORS      LOGLEV(1, 8, M_NONFATAL)    /* show server import option errors */
 
67
#define D_MULTI_ERRORS       LOGLEV(1, 9, M_NONFATAL)    /* show multi-client server errors */
 
68
#define D_EVENT_ERRORS       LOGLEV(1, 10, M_NONFATAL)   /* show event.[ch] errors */
 
69
#define D_PUSH_ERRORS        LOGLEV(1, 11, M_NONFATAL)   /* show push/pull errors */
 
70
#define D_PID_PERSIST        LOGLEV(1, 12, M_NONFATAL)   /* show packet_id persist errors */
 
71
#define D_FRAG_ERRORS        LOGLEV(1, 13, M_NONFATAL)   /* show fragmentation errors */
 
72
#define D_ALIGN_ERRORS       LOGLEV(1, 14, M_NONFATAL)   /* show bad struct alignments */
52
73
 
53
74
#define D_HANDSHAKE          LOGLEV(2, 20, 0)        /* show data & control channel handshakes */
54
75
#define D_MTU_INFO           LOGLEV(2, 21, 0)        /* show terse MTU info */
58
79
 
59
80
#define D_TLS_DEBUG_LOW      LOGLEV(3, 20, 0)        /* low frequency info from tls_session routines */
60
81
#define D_GREMLIN            LOGLEV(3, 30, 0)        /* show simulated outage info from gremlin module */
61
 
#define D_COMP_LOW           LOGLEV(3, 31, 0)        /* show adaptive compression state changes */
62
 
#define D_GENKEY             LOGLEV(3, 32, 0)        /* print message after key generation */
63
 
#define D_ROUTE              LOGLEV(3, 33, 0)        /* show routes added and deleted */
64
 
#define D_TUNTAP_INFO        LOGLEV(3, 34, 0)        /* show debugging info from TUN/TAP driver */
65
 
#define D_RESTART            LOGLEV(3, 35, 0)        /* show certain restart messages */
 
82
#define D_GENKEY             LOGLEV(3, 31, 0)        /* print message after key generation */
 
83
#define D_ROUTE              LOGLEV(3, 0,  0)        /* show routes added and deleted (don't mute) */
 
84
#define D_TUNTAP_INFO        LOGLEV(3, 32, 0)        /* show debugging info from TUN/TAP driver */
 
85
#define D_RESTART            LOGLEV(3, 33, 0)        /* show certain restart messages */
 
86
#define D_PUSH               LOGLEV(3, 34, 0)        /* show push/pull info */
 
87
#define D_IFCONFIG_POOL      LOGLEV(3, 35, 0)        /* show ifconfig pool info */
 
88
#define D_BACKTRACK          LOGLEV(3, 36, 0)        /* show replay backtracks */
 
89
#define D_AUTH               LOGLEV(3, 37, 0)        /* show user/pass auth info */
 
90
#define D_MULTI_LOW          LOGLEV(3, 38, 0)        /* show point-to-multipoint low-freq debug info */
 
91
#define D_MULTI_DROPPED      LOGLEV(3, 39, 0)        /* show point-to-multipoint packet drops */
 
92
#define D_PLUGIN             LOGLEV(3, 40, 0)        /* show plugin calls */
 
93
#define D_MANAGEMENT         LOGLEV(3, 41, 0)        /* show --management info */
 
94
#define D_SCHED_EXIT         LOGLEV(3, 42, 0)        /* show arming of scheduled exit */
66
95
 
67
 
#define D_SHOW_PARMS         LOGLEV(4, 40, 0)        /* show all parameters on program initiation */
68
 
#define D_SHOW_OCC           LOGLEV(4, 41, 0)        /* show options compatibility string */
69
 
#define D_MSS                LOGLEV(4, 42, 0)        /* show MSS adjustments */
70
 
#define D_BACKTRACK          LOGLEV(4, 43, 0)        /* show replay backtracks */
71
 
#define D_SEMAPHORE_LOW      LOGLEV(4, 44, 0)        /* show Win32 semaphore waits (low freq) */
72
 
#define D_DHCP_OPT           LOGLEV(4, 45, 0)        /* show DHCP options binary string */
 
96
#define D_SHOW_PARMS         LOGLEV(4, 50, 0)        /* show all parameters on program initiation */
 
97
#define D_SHOW_OCC           LOGLEV(4, 51, 0)        /* show options compatibility string */
 
98
#define D_LOW                LOGLEV(4, 52, 0)        /* miscellaneous low-frequency debug info */
 
99
#define D_DHCP_OPT           LOGLEV(4, 53, 0)        /* show DHCP options binary string */
 
100
#define D_OSBUF              LOGLEV(4, 54, 0)        /* show socket/tun/tap buffer sizes */
 
101
#define D_MBUF               LOGLEV(4, 55, 0)        /* mbuf.[ch] routines */
73
102
 
74
103
#define D_LOG_RW             LOGLEV(5, 0,  0)        /* Print 'R' or 'W' to stdout for read/write */
75
104
 
81
110
#define D_REL_LOW            LOGLEV(7, 70, M_DEBUG)  /* show low frequency info from reliable layer */
82
111
#define D_FRAG_DEBUG         LOGLEV(7, 70, M_DEBUG)  /* show fragment debugging info */
83
112
#define D_WIN32_IO_LOW       LOGLEV(7, 70, M_DEBUG)  /* low freq win32 I/O debugging info */
84
 
#define D_SEMAPHORE          LOGLEV(7, 70, M_DEBUG)  /* show Win32 semaphore waits */
85
113
#define D_MTU_DEBUG          LOGLEV(7, 70, M_DEBUG)  /* show MTU debugging info */
86
114
#define D_PID_DEBUG_LOW      LOGLEV(7, 70, M_DEBUG)  /* show low-freq packet-id debugging info */
 
115
#define D_MULTI_DEBUG        LOGLEV(7, 70, M_DEBUG)  /* show medium-freq multi debugging info */
 
116
#define D_MSS                LOGLEV(7, 70, M_DEBUG)  /* show MSS adjustments */
 
117
#define D_COMP_LOW           LOGLEV(7, 70, M_DEBUG)  /* show adaptive compression state changes */
 
118
#define D_REMOTE_LIST        LOGLEV(7, 70, M_DEBUG)  /* show --remote list */
 
119
#define D_SCRIPT             LOGLEV(7, 70, M_DEBUG)  /* show parms & env vars passed to scripts */
 
120
#define D_SHOW_NET           LOGLEV(7, 70, M_DEBUG)  /* show routing table and adapter list */
 
121
#define D_ROUTE_DEBUG        LOGLEV(7, 70, M_DEBUG)  /* show verbose route.[ch] output */
 
122
#define D_TLS_STATE_ERRORS   LOGLEV(7, 70, M_DEBUG)  /* no TLS state for client */
 
123
#define D_SEMAPHORE_LOW      LOGLEV(7, 70, M_DEBUG)  /* show Win32 semaphore waits (low freq) */
 
124
#define D_SEMAPHORE          LOGLEV(7, 70, M_DEBUG)  /* show Win32 semaphore waits */
 
125
#define D_TEST_FILE          LOGLEV(7, 70, M_DEBUG)  /* show test_file() calls */
 
126
#define D_MANAGEMENT_DEBUG   LOGLEV(7, 70, M_DEBUG)  /* show --management debug info */
 
127
#define D_PLUGIN_DEBUG       LOGLEV(7, 70, M_DEBUG)  /* show verbose plugin calls */
 
128
#define D_SOCKET_DEBUG       LOGLEV(7, 70, M_DEBUG)  /* show socket.[ch] debugging info */
 
129
#define D_ALIGN_DEBUG        LOGLEV(7, 70, M_DEBUG)  /* show verbose struct alignment info */
87
130
 
88
131
#define D_HANDSHAKE_VERBOSE  LOGLEV(8, 70, M_DEBUG)  /* show detailed description of each handshake */
89
132
#define D_TLS_DEBUG_MED      LOGLEV(8, 70, M_DEBUG)  /* limited info from tls_session routines */
90
133
#define D_INTERVAL           LOGLEV(8, 70, M_DEBUG)  /* show interval.h debugging info */
 
134
#define D_SCHEDULER          LOGLEV(8, 70, M_DEBUG)  /* show scheduler debugging info */
91
135
#define D_GREMLIN_VERBOSE    LOGLEV(8, 70, M_DEBUG)  /* show verbose info from gremlin module */
92
136
#define D_REL_DEBUG          LOGLEV(8, 70, M_DEBUG)  /* show detailed info from reliable routines */
 
137
#define D_EVENT_WAIT         LOGLEV(8, 70, M_DEBUG)  /* show detailed info from event waits */
 
138
#define D_TUN_RW             LOGLEV(8, 70, M_DEBUG)  /* show TUN/TAP reads/writes */
 
139
#define D_MULTI_TCP          LOGLEV(8, 70, M_DEBUG)  /* show debug info from mtcp.c */
93
140
 
94
141
#define D_TLS_DEBUG          LOGLEV(9, 70, M_DEBUG)  /* show detailed info from TLS routines */
95
142
#define D_CRYPTO_DEBUG       LOGLEV(9, 70, M_DEBUG)  /* show detailed info from crypto.c routines */
97
144
#define D_READ_WRITE         LOGLEV(9, 70, M_DEBUG)  /* show all tun/tcp/udp reads/writes/opens */
98
145
#define D_PACKET_CONTENT     LOGLEV(9, 70, M_DEBUG)  /* show before/after encryption packet content */
99
146
#define D_TLS_NO_SEND_KEY    LOGLEV(9, 70, M_DEBUG)  /* show when no data channel send-key exists */
100
 
#define D_THREAD_DEBUG       LOGLEV(9, 70, M_DEBUG)  /* show pthread debug information */
101
147
#define D_PID_DEBUG          LOGLEV(9, 70, M_DEBUG)  /* show packet-id debugging info */
102
148
#define D_PID_PERSIST_DEBUG  LOGLEV(9, 70, M_DEBUG)  /* show packet-id persist debugging info */
103
149
#define D_LINK_RW_VERBOSE    LOGLEV(9, 70, M_DEBUG)  /* show link reads/writes with greater verbosity */
104
 
#define D_TLS_THREAD_DEBUG   LOGLEV(9, 70, M_DEBUG)  /* show detailed info from TLS thread routines */
105
 
#define D_SELECT             LOGLEV(9, 70, M_DEBUG)  /* show detailed info from main select() call */
106
 
#define D_TUN_RW             LOGLEV(9, 70, M_DEBUG)  /* show TUN/TAP reads/writes */
107
150
#define D_STREAM_DEBUG       LOGLEV(9, 70, M_DEBUG)  /* show TCP stream debug info */
108
 
#define D_REGISTRY           LOGLEV(9, 70, M_DEBUG)  /* win32 registry debugging info */
109
151
#define D_WIN32_IO           LOGLEV(9, 70, M_DEBUG)  /* win32 I/O debugging info */
110
152
 
111
153
#define D_SHAPER_DEBUG       LOGLEV(10, 70, M_DEBUG) /* show traffic shaper info */
112
154
 
 
155
#define D_REGISTRY           LOGLEV(11, 70, M_DEBUG) /* win32 registry debugging info */
113
156
#define D_OPENSSL_LOCK       LOGLEV(11, 70, M_DEBUG) /* show OpenSSL locks */
114
157
 
 
158
#define D_THREAD_DEBUG       LOGLEV(4, 70, M_DEBUG)  /* JYFIXME -- show pthread debug information */
 
159
 
 
160
 
115
161
#endif