blob: a78c67b31dec94223aa24cb325302364a6d77f1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*
* options.h:
*
*/
#ifndef __OPTIONS_H_ /* include guard */
#define __OPTIONS_H_
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
typedef enum {
OPTION_AGGREGATE_OFF,
OPTION_AGGREGATE_SRC,
OPTION_AGGREGATE_DEST
} option_aggregate_t;
typedef enum {
OPTION_PORTS_OFF,
OPTION_PORTS_SRC,
OPTION_PORTS_DEST,
OPTION_PORTS_ON
} option_port_t;
typedef struct {
/* interface on which to listen */
char *interface;
/* pcap filter code */
char *filtercode;
/* Cross network filter */
int netfilter;
struct in_addr netfilternet;
struct in_addr netfiltermask;
int dnsresolution;
int promiscuous;
int showbars;
option_port_t showports;
option_aggregate_t aggregate;
} options_t;
#endif /* __OPTIONS_H_ */
|