This commit is contained in:
pdw
2002-03-24 16:22:26 +00:00
commit 3004ea063c
17 changed files with 973 additions and 0 deletions

23
addr_hash.h Normal file
View File

@@ -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_ */