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;
44 * This structure has to be defined in the same order as the config
45 * directives in cfgfile.c. Clearly this is EBW.
48 /* interface on which to listen */
53 /* pcap filter code */
57 option_port_t showports;
60 int promiscuous_but_choosy;
68 option_bw_unit_t bandwidth_unit;
78 option_linedisplay_t linedisplay;
82 long long max_bandwidth;
85 /* Cross network filter */
87 struct in_addr netfilternet;
88 struct in_addr netfiltermask;
91 struct in6_addr netfilter6net;
92 struct in6_addr netfilter6mask;
94 /* Account for link-local traffic. */
98 int config_file_specified;
103 void options_set_defaults();
104 void options_read(int argc, char **argv);
105 void options_read_args(int argc, char **argv);
108 #endif /* __OPTIONS_H_ */