File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / iftop / addr_hash.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 16:57:34 2012 UTC (12 years, 3 months ago) by misho
Branches: iftop, MAIN
CVS tags: v0_17p0, v0_17, HEAD
iftop

/*
 * 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 "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(void);

#endif /* __ADDR_HASH_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>