Files
iftop/options.h
pdw 45ccb4e4b9 Various changes for portability to FreeBSD.
Added "R" to control service resolution.
2002-10-18 11:51:47 +00:00

49 lines
846 B
C

/*
* 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 portresolution;
int promiscuous;
int showbars;
option_port_t showports;
int aggregate_src;
int aggregate_dest;
int paused;
} options_t;
#endif /* __OPTIONS_H_ */