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

28 lines
507 B
C

/*
* addr_hash.h:
*
*/
#ifndef __ADDR_HASH_H_ /* include guard */
#define __ADDR_HASH_H_
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "hash.h"
typedef struct {
unsigned short int protocol;
unsigned short int src_port;
struct in_addr src;
unsigned short int dst_port;
struct in_addr dst;
} addr_pair;
typedef addr_pair key_type; /* index into hash table */
hash_type* addr_hash_create();
#endif /* __ADDR_HASH_H_ */