Annotation of embedaddon/iftop/addr_hash.h, revision 1.1

1.1     ! misho       1: /*
        !             2:  * addr_hash.h:
        !             3:  *
        !             4:  */
        !             5: 
        !             6: #ifndef __ADDR_HASH_H_ /* include guard */
        !             7: #define __ADDR_HASH_H_
        !             8: 
        !             9: #include <sys/types.h>
        !            10: #include <sys/socket.h>
        !            11: #include <netinet/in.h>
        !            12: #include "hash.h"
        !            13: 
        !            14: typedef struct {
        !            15:     unsigned short int protocol;
        !            16:     unsigned short int src_port;
        !            17:     struct in_addr src;
        !            18:     unsigned short int dst_port;
        !            19:     struct in_addr dst;
        !            20: } addr_pair;
        !            21: 
        !            22: typedef addr_pair key_type;      /* index into hash table */
        !            23: 
        !            24: hash_type* addr_hash_create(void);
        !            25: 
        !            26: #endif /* __ADDR_HASH_H_ */

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