Prefix all global variables to aid debugging.
[darkstat] / opt.h
1 /* darkstat 3
2 * copyright (c) 2001-2011 Emil Mikulic.
3 *
4 * opt.h: global options
5 */
6
7 /*
8 * Capture options.
9 */
10 extern int opt_want_pppoe;
11 extern int opt_want_macs;
12 extern int opt_want_hexdump;
13 extern int opt_want_snaplen;
14 extern int opt_wait_secs;
15
16 /*
17 * Error/logging options.
18 */
19 extern int opt_want_verbose;
20 extern int opt_want_syslog;
21
22 /*
23 * Accounting options.
24 */
25 extern unsigned int opt_highest_port;
26
27 /*
28 * Hosts table reduction - when the number of entries is about to exceed
29 * <max>, we reduce the table to the top <keep> entries.
30 */
31 extern unsigned int opt_hosts_max;
32 extern unsigned int opt_hosts_keep;
33 extern unsigned int opt_ports_max;
34 extern unsigned int opt_ports_keep;
35
36 /*
37 * Hosts output options.
38 */
39 extern int opt_want_lastseen;
40 extern const char *opt_interface;
41
42