Added -n option.

This commit is contained in:
pdw
2002-03-31 22:57:51 +00:00
parent 94a696b7fb
commit a248b6046e
9 changed files with 259 additions and 134 deletions

29
options.h Normal file
View File

@@ -0,0 +1,29 @@
/*
* options.h:
*
*/
#ifndef __OPTIONS_H_ /* include guard */
#define __OPTIONS_H_
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
typedef struct {
/* interface to listen on */
char *interface;
/* pcap filter code */
char *filtercode;
/* Cross network filter */
int netfilter;
struct in_addr netfilternet;
struct in_addr netfiltermask;
int dnsresolution;
int promiscuous;
} options_t;
#endif /* __OPTIONS_H_ */