diff options
author | pdw <> | 2002-03-24 16:22:26 +0000 |
---|---|---|
committer | pdw <> | 2002-03-24 16:22:26 +0000 |
commit | 3004ea063cbb186a63af99a2e13d7cb09f23360d (patch) | |
tree | d617af0ad0619334f899d3405350edb9b1b2407b /addr_hash.h | |
download | iftop-3004ea063cbb186a63af99a2e13d7cb09f23360d.zip |
iftop
Diffstat (limited to 'addr_hash.h')
-rw-r--r-- | addr_hash.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/addr_hash.h b/addr_hash.h new file mode 100644 index 0000000..4d666e9 --- /dev/null +++ b/addr_hash.h @@ -0,0 +1,23 @@ +/* + * addr_hash.h: + * + */ + +#ifndef __ADDR_HASH_H_ /* include guard */ +#define __ADDR_HASH_H_ + +#include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> +#include "hash.h" + +typedef struct { + struct in_addr src; + struct in_addr dst; +} addr_pair; + +typedef addr_pair key_type; /* index into hash table */ + +hash_type* addr_hash_create(); + +#endif /* __ADDR_HASH_H_ */ |