6 #ifndef __OPTIONS_H_ /* include guard */
10 #include <sys/socket.h>
11 #include <netinet/in.h>
12 #include <arpa/inet.h>
31 OPTION_LINEDISPLAY_TWO_LINE,
32 OPTION_LINEDISPLAY_ONE_LINE_BOTH,
33 OPTION_LINEDISPLAY_ONE_LINE_RECV,
34 OPTION_LINEDISPLAY_ONE_LINE_SENT
35 } option_linedisplay_t;
38 * This structure has to be defined in the same order as the config
39 * directives in cfgfile.c. Clearly this is EBW.
42 /* interface on which to listen */
47 /* pcap filter code */
51 option_port_t showports;
54 int promiscuous_but_choosy;
59 int bandwidth_in_bytes;
69 option_linedisplay_t linedisplay;
73 long long max_bandwidth;
76 /* Cross network filter */
78 struct in_addr netfilternet;
79 struct in_addr netfiltermask;
82 struct in6_addr netfilter6net;
83 struct in6_addr netfilter6mask;
85 /* Account for link-local traffic. */
89 int config_file_specified;
94 void options_set_defaults();
95 void options_read(int argc, char **argv);
97 #endif /* __OPTIONS_H_ */