diff options
author | pdw <> | 2002-03-31 22:57:51 +0000 |
---|---|---|
committer | pdw <> | 2002-03-31 22:57:51 +0000 |
commit | a248b6046eb5855fd5b0c9f2ea2a774ab2d7b612 (patch) | |
tree | fd352d505b37066b3cf80f7ec2418796f2369d88 /options.h | |
parent | 94a696b7fbe667a7d3c0d4e4f4d615259e964ee6 (diff) | |
download | iftop-a248b6046eb5855fd5b0c9f2ea2a774ab2d7b612.zip |
Added -n option.
Diffstat (limited to 'options.h')
-rw-r--r-- | options.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/options.h b/options.h new file mode 100644 index 0000000..c70cccf --- /dev/null +++ b/options.h @@ -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_ */ |