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

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 {
1.1.1.2 ! misho      15:     int af;
1.1       misho      16:     unsigned short int protocol;
                     17:     unsigned short int src_port;
1.1.1.2 ! misho      18:     union {
        !            19:         struct in_addr src;
        !            20:         struct in6_addr src6;
        !            21:     };
1.1       misho      22:     unsigned short int dst_port;
1.1.1.2 ! misho      23:     union {
        !            24:         struct in_addr dst;
        !            25:         struct in6_addr dst6;
        !            26:     };
1.1       misho      27: } addr_pair;
                     28: 
                     29: typedef addr_pair key_type;      /* index into hash table */
                     30: 
                     31: hash_type* addr_hash_create(void);
                     32: 
                     33: #endif /* __ADDR_HASH_H_ */

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